lua-users home
lua-l archive

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

> Thats really nice. It would be nice if the pretty printer could try calling
> __tostring' on  stuff it doesnt understand (c types) in the hope of getting
> a printable version.

It already does that, doesn't it?  Try this for example:

>  f = ("/usr/bin/lua")
>  f
file (0xc229f0)
>  f:close()

It doesn't call __tostring metamethods for tables though.  Perhaps
that would be convenient too.