Eliot’s Tips and Tricks

_G: The Translator API

_G gives the ‘global’ table which has all the libraries and functions under it. So you can use it to browse the entire namespace. These screen snaps give a hint of what can be done. Here we can see all the Lua table library functions:

Doing print(_G) allows you to get a browseable tree of all the functions available, in this screen shot shows the expansion of the net.http namespace:

Deep auto-completion works nicely too if you know roughly what you are looking for:

You may also find the Iguana Translator Modules reference useful too.


One Comment

  1. Pingback: Will You Share Your Code? - iNTERFACEWARE Inc.

Leave A Comment?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.