benoitm@hpmwtd.HP.COM (Benoit Menendez) (02/07/89)
I want to create a function on my 28S which, given an argument returns a function. If I do: << -> i << << -> x << x i + >> >> >> >> 'FOO STO And I evaluate: 2 FOO I get: << -> x << x i + >> >> and not: << -> x << x 2 + >> >> I understand that I could do it with algebraic equations, but I don't like to set the value of global variables and evaluate the equation. I would prefer to pass the arguments as parameters. Question: Is there a way to return a function which depends on local variables ? Thanks. ---------------------------------------- Benoit Menendez ARPANET : benoitm%hpmwtd@hplabs.hp.com UUCP : ...hplabs!hpmwtd!benoitm