lua-users home
lua-l archive

Re: What happens when you try to serialize a closure

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


> So... _ENV is not an implicit upvalue of every function?
No.
> And if you could write a main chunk that did not reference _ENV, would
> it then have zero upvalues?
No. All main chunks have _ENV as its first upvalue, even if they don't
refer to globals.

AltStyle によって変換されたページ (->オリジナル) /