[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: question about cdata type identification
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 18 Apr 2011 10:40:58 +0200
On Mon, Apr 18, 2011 at 10:35 AM, Geoff Leyland
<geoff_leyland@fastmail.fm> wrote:
> Can you give your cdata metatables (you must be doing that already given that they support math operators) and compare the metatables?
Which is exactly how we do it with regular Lua objects; there has
occaisionally been talk about a __type metamethod but it's easy to
write an extended type() function which returns the metatable if
available.
steve d.