lua-users home
lua-l archive

Re: __gc and userdata order of collection issues

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


Hi Jerome.
Thanks for the response. I see what you're getting at.
> Such an order is simple enough to understand so you can take it into
> account in your code to avoid the problem you have in your example.
> Here you would have to create the serializer before any userdata that
> may use it in their finalizer.
>
I hadn't thought of a serializer and I may need it yet, but right now,
the issue happens between modules no within modules so I can't solve
this instance of the problem with such a device.
best,
wes

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