Ron Jeffries
unread,Feb 22, 2011, 6:05:09 PM2/22/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to iLuaBox
My next plan with the bowling demo was to modularize the code,
ultimately into the little testing framework, the bowling game, the
tests, and so on.
i followed the approach in Programming in Lua, which was to use the
"require" capability to set up a module. It appears that that's not
implemented in iLua? Or, if it is, can someone paste a couple of short
files to serve as examples?
I wound up using dofile, as is done between guidemo and gui, with all
my test framework functions global. I can see how I could make a
global table Assert or something, and hide them inside, calling with
Assert.beginTests() and so on.
Is that roughly the right approach to building more modular code with
iLua?
Thanks!
Ron