[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] luaprompt 0.2
- From: Dimitris Papavasiliou <dpapavas@...>
- Date: Sun, 1 Jul 2012 19:13:59 +0300
> 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 = io.open ("/usr/bin/lua")
> f
file (0xc229f0)
> f:close()
true
It doesn't call __tostring metamethods for tables though. Perhaps
that would be convenient too.
Dimitris