Go to the first, previous, next, last section, table of contents.


Nested functions

Many Algolic languages, such as Pascal, allow functions to be declared inside other functions, so as to be visible only inside that function. The Muq MUF compiler also allows this:

Stack:
: print2 -> n   : p -> i [ "%d\n" i | ]print , ;   n p n p ;
Stack:
13 print2
13
13
Stack:
13 p

**** Sorry: No such variable: 'p'

Stack:


Go to the first, previous, next, last section, table of contents.