From: Steve K. <ha...@ya...> - 2006-05-06 08:00:55
|
Hi, The sample code is just liek this count=1 repeat print("Test this 3 times") count=count+1 until count==4 save as test.lua Run lua test.lua $ lua test.lua Test this 3 times Test this 3 times Test this 3 times run using wxlua instead of lua $ wxlua test.lua Test this 3 times Test this 3 times Test this 3 times Now compile with luac test.lua $ luac test.lua luac: test.lua:7: `=' expected near `count' Of course no luac.out created. I am using version wxlua-2.6.2.0.tar.gz The latest snapshot wxLua_Snapshot_2006-05-04.tar.gz does not compile for me so no chance to test Cheers John Labenski <jla...@gm...> wrote: On 5/6/06, Steve Kieu wrote: > When I use luac to compile a lua script, is the script use > > repeat > .... > until condition > > luac gives an error like: > > `=' expected near `i' > the line error is the line contains until condition Can you provide a very simple example of code that fails? I haven't used luac for some time. > But if run the script directly using wxlua or lua, it is fine. Strange. > I downloaded lua-5.1 from lua homepage and try to use luac without problem. > Of course can not integrate into wxLua as it complain about version > mismatch. What version of wxLua are you using? If you use one of the snapshots from the download page it uses 5.1, the last release 2.6.2 uses 5.0.1. > Is it a known bug? how can I fix it? At the moment I just do not use repeat > -- until as a work around :-) I don't think we knew about this before, I prefer while loops... Regards, John Labenski ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Wxlua-users mailing list Wxl...@li... https://lists.sourceforge.net/lists/listinfo/wxlua-users S.KIEU --------------------------------- On Yahoo!7 360°: Your own space to share what you want with who you want! |