lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> - 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