lua-users home
lua-l archive

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

On Wed, Feb 24, 2010 at 6:38 PM, Roberto Ierusalimschy
<> wrote:
> * Environments for C functions should go too. Actually, they were
> introduced only to match environments in Lua functions. The old
> technique of setting a table as a common upvalue for all functions
> of a library (as done in Lua 5.0) is quite satisfying. (So, the
> only "environments" left are for userdata, which probably should
> get a more proper name.)

Can we still keep the convenience of C environments even if it is now
an upvalue. Some support for an equivalent system would be nice even
if the implementation is different.

- Patrick Donnelly