Re: about the next version
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: about the next version
- From: "Peter Loveday" <peter@...>
- Date: 2001年12月20日 19:01:33 +1030
> - tag methods in tables: all tag methods are now stored in regular
> tables (as in Sol). Therefore, functions "gettagmethod", "settagmethod",
> etc. are deprecated. Tags are also deprecated. Tables and userdata have
> a "handler-table" (is this a good name?) where they store their tag
> methods. We did not change the semantics of ":" (but see below).
Will it still be possible to identify what type a userdata object is
at runtime?
Currently I use lua_gettag() on userdata in various C functions, which
can verify the type, and, in some cases, will take different action based
on what userdata type is passed.
I guess the handler table could contain a "class name" of sorts; would
this be the way to achieve the same functionality, or is there another
method.
Thanks.
Love, Light and Peace,
- Peter Loveday
eyeon Software