[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Reading a Lua system image
- From: Steve Dekorte <steve@...>
- Date: Wed, 31 Dec 97 13:22:09 -0800
>[writeto() problem]
>I think it must be peculiar to your system. This is what I get on
>Solaris 2.5:
You're right. It turned out to be a bug in the OpenStep4.2 implementation of pclose().
I just commented out the pclose check in Lua's fileclose() function and everything
seems to work now.
>Does your persistency code correctly handle multiple references to the
>same object and cyclical data structures?
Yes, and the implementation turned out to be much simpler than I had thought.
The trick is seperating reading/writing from linking.
>If you need further
>inspiration, you might look at the Python "pickle" module
>(<http://www.python.org).
Thanks,
Steve