lua-users home
lua-l archive

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


>> Then define lua_pushuserdata to use the registry to store the Lua values
>> created by lua_newuserdatabox, using the C pointer as an index.
>> When the pointer
>> exists in the registry (or any other table), simply return the value.

>Any reason not to enable this by default (for backwards
>compatibility/convenience)?

Yes, to help make clear that the semantics of udata is now different.
Hence, the new name. But perhaps the manual could say something about this.
--lhf