lua-users home
lua-l archive

Re: C API question

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


On Jan 10, 2011, at 1:27 PM, Roberto Ierusalimschy wrote:
> 
> That would create a whole new world of possibilities for dangling
> pointers. Lua has a strong principle of avoiding references that
> are not accounted for by the garbage collector.
Yes. Well, I guess the registry can still be avoided by keeping a weak-valued table in a C-library upvalue to map the lightuservalues (as Patrick suggested) to the fulluservalues. Thanks to both of you.
e

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