GP2X dev : Fishguts I

So I have my Main() running from lua, detect the host platform (pc,psp,gp2x) and loading the different title screen, intialising builtin variables and flags etc…

ran into my first big annoyance with Lua smile

"a" b() + "c" 

does not work, but;

"a" .. b() .. "c" 

works just fine! Lua co-erces things to string and number everywhere else but wont ‘add’ them together with a function in the middle.. you must ‘concat’ them (the double dots).

AARGH!

 

Posted by Stu on 09/19 at 09:21 PM
Filed Under : ComputersDevelopmentFishguts
Comments are closed There are no comments on this entry.

Tags:
Share/Bookmark
Commenting is not available in this weblog entry.

<< Back to main