[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Few questions about 5.0 -> 5.1
- From: Jan Kratochvíl <jan.kratochvil@...>
- Date: Thu, 20 Oct 2005 17:40:29 +0200
Hello,
i am moving to 5.1 alpha and i have some questions/notes about it.
Please forgive me if some of it is known from archive and just tell me
so. (I didn't find it there but it means nothing :) )
1) When i call lua_resume for the first time (for thread) it returns 1
but stack is empty and coroutine can continue.
2) I used functions like "function print(...) for i=1,arg.n do
myclass:show(i) end end" with new syntax i am don't know how to do
better then "function print(...) a,b,c,d,e = ... myclass:show(a) AND SO ON"
3) When i do "for i,v in pairs({'a','b'}) do myclass:show(v) end" i got
correctly 'a' but then error raises "invalid key for 'next'". Although i
can't repeat this behaviour in lua console. So it is probably
some bug in my application, BUT in 5.0 is everything ok.
Thanks for your reactions
Jan Kratochvil
Illusion softworks, a.s.