lua-users home
lua-l archive

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


On 20/02/2013 20:48, Marc Lepage wrote:
> A userdata can have a table set as fenv. It has a default fenv.
> 
> Can I set the userdata fenv to nil? And later set it back to some table
> (empty, not the original default fenv)?
> 
> Would this have any weird effects?

You cannot set the fenv of a userdata to nil.  It must always be a
table.  But an empty table is fine.