Stu's Rusty Bucket

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 on 09/19 at 08:21 PM    
Filed Under : ComputersDevelopmentFishguts
Comments are closed There are no comments on this entry.

<< Back to main