lua-users home
lua-l archive

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


See the table serialisation link mentioned before or try
https://github.com/kikito/inspect.lua for a ready to use module. Also
note: table.foreach() has been deprecated since Lua 5.1.

On 4 May 2012 18:15, Emeka <emekamicro@gmail.com> wrote:
>
> Hello All,
>
> Say I have the below:
>
> local t = {name="lua", version="5.2"}
> I would want to use a print-like function to do the following:
> tprint(t)  -- I would want this function to output  {name="lua", version="5.2"}  instead of table pointer.
>
> Regards, \Emeka
>
> --
> Satajanus  Nig. Ltd
>
>
>