From: Yukihiro Matsumoto Date: 2006-12-07T09:44:04+09:00 Subject: Re: Problem with Marshaling WeakRefs? Hi, In message "Re: Problem with Marshaling WeakRefs?" on Thu, 7 Dec 2006 08:55:10 +0900, umptious@gmail.com writes: |I'm experimenting with Marshal, but I'm having problems making it work |with data structures that use WeakRefs. Marshal saves without |complaining, but the WeakRefs seem to be junk when I load. Hopefully |the program below explains everything. I'm using Ruby 184-15 on Windows |XP Pro. | |Am I missing something? No, it's a bug. Thank you for finding it. Note that restored weakref object will weakly refer to a new (copied) object. It's only way to make weakref valid between processes. matz.