|
User tags
as well as the concept of ‘tags’ are no longer part of Lua language. The last
version of Lua using ‘tags’ was 4.x. In Lua 5 you have to use meta-tables,
which are entirely different in terms of practical application and concept. I implement
tag system on top of meta-tables in our project – not pretty, but better than
porting a lot of code to use meta-tables directly. Alex -----Original
Message----- I am
integrating Lua into our game engine and am trying to create a registration
template class like in the "Technical Note 5" paper. The only
problem is that the code given there uses usertag calls, which isn't defined in
the released source, in the docs or anywhere I can find. I understand all
the code in this example except the user tag stuff. What is the significance of
the usertags in this code? What would be the equivalent code for Lua 5.0? Thanks // Mike |