lua-users home
lua-l archive

Re: Userdata with no environment table by default

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


Chris wrote:
Of course you could always create a new environment for every userdata
but this is extremely memory inefficient when only a few of the
objects actually need an environment.
Can you not create a single 'virgin environment' for those which haven't been re-assigned and detect them that way?

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