lua-users home
lua-l archive

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


>[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