[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: __gc and userdata order of collection issues
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Tue, 14 Oct 2008 02:43:04 -0700
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.