[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaL_checkudata vs. polymorphism
- From: Mike Pall <mikelu-0508@...>
- Date: Sun, 7 Aug 2005 19:08:25 +0200
Uli Kusterer wrote:
> Looking at the
> sources, I get the impression that luaL_checkudata() returns NULL for
> subclasses of the requested type. Is there a facility to do the
> equivalent of luaL_checkudata() but also look at metatables higher
I have contributed a small patch for Lua 5.1 that adds support
for subclasses to luaL_checkudata() and luaL_newmetatable().
It's in the mailing list archives:
[Note that the archive merges multiple attachments. :-/
You only need the part before the copyright notice.]
It should work with Lua 5.0, too (but I have not tested it).
I have no idea whether this change will make it into Lua 5.1.