[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re: Antwort: global keyword instead of local
- From: "Magnus Lie Hetland" <mlh@...>
- Date: Mon, 28 Aug 2000 20:39:39 +0200
> In Python you can pass the function object as a default parameter to
> work around this problem. However, I have no idea how to work around
> this in Lua. Upvalues don't work, because the variable is created
> after the function definition has been evaluated. Just for the fun of
> it, ideas anyone?
I thought about something like
function f()
function g()
dostring("%g()")
end
end
but... You can't nest function declarations... Oh, well.
Oh, well.
>
> - Christian
--
Magnus Lie Hetland (magnus at hetland dot org)
"Reality is what refuses to disappear when you stop
believing in it" -- Philip K. Dick