----- Original Message -----
From: "Daniel Heck" <[EMAIL PROTECTED]>
To: <enigma-devel@nongnu.org>
Sent: Friday, March 31, 2006 2:07 PM
Subject: Re: [Enigma-devel] Port of r99 to Lua 5.1
The main challenge is to update all the scripts that use %upvalues, and
anyhting
else that does not happen to work with lua5.
Maybe I'm mistaken, but I thought upvalues were abandoned in favor of
full lexical scoping in Lua 5. In this case, wouldn't the problem be
solved by simply %variable with variable everywhere?
Well There are a few problems.
If there is any code that depends on "%upvalue" refering to the value as it
was when the fnction was defined rather than the current value, then a
slight workaround is needed.
The workaround needed is described in:
http://lua-users.org/lists/lua-l/2005-11/msg00314.html
Also there is the case of things like:
Local y
...
y=%y
If this is used anywhere a different workaround would be nessisary.
The other incompatabilites mentioned in the "Incompatibilities with Previous
Versions" sections of the 5.0 and 5.1 manuals
also apply.
_______________________________________________
Enigma-devel mailing list
Enigma-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/enigma-devel