On Fri, 2004-05-07 at 06:04, Steve Wampler wrote:
> However, note that this done at program implementation time, not
> runtime. With closures, the equivalent to the above three functions
> can be done at runtime:
>
> f1 := Closure(heap_demo3, AGap(), 1)
> f2 := Closure(heap_demo3, AGap(), 2)
> f3 := Closure(heap_demo3, AGap(), 3)
>
> Here, AGap() is a singleton class used to denote the unbound
> parameters, while the invariant parameters are just assigned values.
Just as an aside, since I just stumbled on this...
The procedure heap_demo3 isn't needed, it's just structure
subscripting, so the above 3 lines could also be:
f1 := Closure("[]", AGap(), 1)
f2 := Closure("[]", AGap(), 2)
f3 := Closure("[]", AGap(), 3)
--
Steve Wampler -- [EMAIL PROTECTED]
The gods that smiled on your birth are now laughing out loud.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group