Subject: green's functions, passing functions to a routine
From: Stavros Macrakis
Date: Sun, 7 Sep 2008 23:23:32 -0400
I said:
> An easy way to guarantee that you are using the value and not the
> functional value is (+f)(...):
>
> block([f:foo],[f(2),f[2],f]) => [fun, arr, foo, foo()]
>
Sorry, this should have been:
An easy way to guarantee that you are using the value and not the functional
value is (+f)(...):
f(x):='fun$
f[x]:='arr$
f: 'val$
(+f)() => val() <<< using global value
block([f:foo], [f(2), f[2], f, (+f)() ]) => [fun, arr, foo, foo()]
<<< uses local value
-s