[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Differences between lua 4 and 5?
- From: "Huang, Wallace" <whuang@...>
- Date: Sat, 3 Jan 2004 15:46:51 -0800
Hi,
I'm in the process of upgrading my Lua installation from 4 to 5 and have
some questions about differences I ran into.
1) In lua 4.0.1, I was able to make function calls like:
myFunc
(
foo,
bar,
)
In Lua 5.0, luac complains on the same code with the error
"ambiguous syntax (function call x new statement) near `('"
I noticed in the parser that the code is explictly checking for the
function name and parenthesis to be on the same line--is this
intentional?
2) lua_open used to take a stack size argument, and now does not.
Should I worry about lua overflowing its stack, and is there a way I can
limit the memory usage of each lua_State?
3) I ran into the PS2/longjump problem in lua_call in 5, but not 4.
We're using gcc 2.953--should I be concerned?
Thanks,
-W