lua-users home
lua-l archive

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


On 7/18/13, Hisham <h@hisham.hm> wrote:
> if this is to be made more general than just for math,

I know there are considerable implications to the module ecosystem
that need to be carefully considered, but as a more general
application, consider returning the metatable name of userdata as the
subtype.

There have been some occasions I really wanted to know the "subtype"
of the userdata so I could do special or different handling.

Thanks,
Eric
-- 
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/