lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
Lua 5.1 offers a more proper way to do this mapping.

Neat.  Any examples?

It is straightforward. Use the new "environment" for userdata. This is
already present in 5.1w5. See

  http://lua-users.org/lists/lua-l/2005-03/msg00046.html

Has anyone used this is practice and can share an example? straightforward seems to be a reserved keyword for me.

thx