On Wed, 07 Dec 2005 12:06:06 +1300 Christopher Sawtell wrote: > > Also, if you have loops and a stack (no variables, just > > push and pop from the stack) then you have a push-down automata (PDA). > You mean like FORTH and PostScript?
FORTH does have variables. variable meaning_of_life \ create the word as a var 42 meaning_of_life ! \ initialise it \ ... other code meaning_of_life @ \ pop it to the stack for further manipulation some variations require the initial value of the variable to be on the stack when the variable is declared, which means the first two lines can be combined into: 42 variable meaning_of_life (Although the case in point should probably be expressed as a constant) Unsure about variables in PostScript. -- Nick Rout <[EMAIL PROTECTED]>
