lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Nov 10, 2009 at 4:11 PM, hans elbers <hans@hpelbers.org> wrote:
> It is not intended for serializing, but it's very handy for debugging (or
> even to see what functions are in a loaded module (just  do pr(_G) and
> scroll around in the output)

That's exactly it - if just for debugging you don't have to worry
about the result being exactly parseable again by Lua in all
circumstances.

And yes, we all have one of those in our toolboxes!

http://penlight.luaforge.net/api/modules/pl.pretty.html

BTW, it's a Lua FAQ question, which has some handy references:

http://batbytes.com/luafaq/#T1.15

steve d.