Sometimes I'm baffled.
rabit at dimensionB.de
Fri Jan 30 03:34:39 CST 2009
One further note:
param(i) is indeed parsed differently by the compiler
than a custom function as long as there is a parameter
for the result of param(i) called in the statement.
works, but (with parameter)
put the visible of param(i)
yields an error.
On 30.01.2009, at 04:54, Brian Yennie wrote:
> He wasn't trying to get the handler name... but trying to help is
> good =). It's actually an interesting piece of trivia that param(0)
> will fetch the handler name. Similarly, $0 fetches the script name
> for a CGI script...
> It seems to me that param(i) is just parsed differently by the
> compiler than a custom function. Something about the order of
> evaluation changes. I wonder whether value(param(i)) would work? Or
> just an echo function:
> set the visible of echo(param(i)) to TRUE
> function echo v
> return v
> end echo
> Of course, the original workaround is pretty painless, luckily.
> - Brian
More information about the use-livecode