[Date Prev][Date Next][Thread Prev][Thread Next]
- 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
but... You can't nest function declarations... 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