lua-users home
lua-l archive

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


>  To be honest I can't figure out why userdata values get an environment
>  by default because this seems counterintuitive (seeing as how userdata
>  doesn't use the environment table for anything)

not sure i understand your concern, but see
http://lua-users.org/lists/lua-l/2005-04/msg00213.html
for an example usage of userdata environments.