Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!hplabs!hp-ses!hpcea!hpnmdla!hpmwtd!benoitm From: benoitm@hpmwtd.HP.COM (Benoit Menendez) Newsgroups: comp.sys.hp Subject: 28S question Message-ID: <690001@hpmwbam.HP.COM> Date: 6 Feb 89 21:17:36 GMT Organization: HP Microwave Tech. - Santa Rosa, Ca. Lines: 38 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