View Single Post
Old 10-31-2009, 12:10 PM   #89
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by ericshliao View Post
Another question: How do I know if certain function can be access through lgob, and in what form?(
A cool tool is the Navigator example in the lgob distro: you can load any Lua module (such as lgob.gdk), and view al functions and constants that are in i

I also wrote a function 'pr()' (included in MiniPad.tgz), which recursively prints any Lua variable. The top table in Lua is '_G'. So if you load some modules with require, and then do pr(_G), it will show you all variables (including all known modules and functions)

Happy Lua!
hansel is offline   Reply With Quote