lua-users home
lua-l archive

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


Hi, all!

I've adjusted Glua-X to work with both Lua 4.0 and 5.0 alpha, but the
changed usage of 'userdata' still confuses me. I'm trying to make a common
"methodology" (or, well, a way of dealing with it :) to make the 4.0 / 5.0
changes transparent if you use Glua-X. 

With 4.0, userdata is like pointers that can be attached a type 'tag',
right. I think that was simple.

With 5.0, there are "real" userdata, which is allocated at Lua object
creation and "light" userdata that's more like the 4.0 variant, right? Is
there any correspondence to the 4.0 tag? Do you in general use the 4.0 tags
or can we just use a single one for all Glua-X userdata?

What I'm _really_ after is practical usage cases for userdata. Std libs
don't offer much in this area.
Please send me some samples (either 4.0 or 5.0) if you have them. Thanks.

- Asko Kauppi
  Flextronics Finland

###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.