[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 userdata fenv nil?
- From: Finn Wilcox <finnw@...>
- Date: Wed, 20 Feb 2013 21:32:20 +0000
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.