From: thegeek <ok...@on...> - 2006-03-14 09:33:35
|
> > On 3/13/06, thegeek <okrog@...> wrote: > > So far I've been able to upgrade wxLua to lua 5.1, works great except for some > > of the wxlua lua-code, which does ofcourse use table.getn and other deprecated > > functions/syntaxes, but i tested with some of the samples(modified for lua 5.1) > > and it worked with no problem. > > So I have all the wxlua libs compiled with lua 5.1 and just need to integrate > > this into the lslua litestep plugin. This could prove to be a little beyond me, > > There were no changes in the C code? That's good to know. I did ofcourse have to add the newthread coroutine code back in, and a few functions changed name; load* and a few others. The garbage collection has also changed, and the dobuffer function too. However, the changes were all in all very minor. > > > so I'll probably be looking forward to your next release. > > Good luck:) > > I've already updated some of the lua code to work with 5.1, it was > suprisingly easy with this little function. :) > > if table.getn == nil then > function table.getn(atable) > local count = 0 > while atable[count+1] do > count = count + 1 > end > return count > end > end > You'll also have to update all for statements, since they now need pair() or ipairs(). > I'll have to wait 'till next week to try the C code update. > > Regards, > John Labenski > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > |