[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] luaprompt 0.2
- From: Justin Cormack <justin@...>
- Date: Sun, 1 Jul 2012 18:53:23 +0100
On Sun, Jul 1, 2012 at 5:13 PM, Dimitris Papavasiliou <firstname.lastname@example.org> wrote:
> Thats really nice. It would be nice if the pretty printer could try callingIt already does that, doesn't it? Try this for example:
> __tostring' on stuff it doesnt understand (c types) in the hope of getting
> a printable version.
> f = io.open ("/usr/bin/lua")
OK, they were LuaJIT cdata items, which it thinks are blank, and doesnt call __tostring or print cdata when it prints them in a table, only on their own:
addr = ,
cacheinfo = ,
ifaddr = ,
It would be nice if it called __tostring for these.