From: why the lucky stiff Date: 2003-10-06T22:45:10+09:00 Subject: Re: YAML serialisation problem On Monday 06 October 2003 05:41 am, Greg McIntyre wrote: > > It seems YAML works fine for serialising the Parent object _unless_ the > child references it, in which case it looks like the &id001 at the root > of the YAML document throws off the attempt to read it back in as a > Parent and for some reason it resorts to reading it in as a Hash. > Unfortunately, there is a bug in handling of circular references in the version of Syck which was shipped with Ruby 1.8.0. I just tested against Ruby in CVS and your script works fine now. Ruby 1.8.1 should be released in a month or so. You could also check out Syck from CVS and rebuild a new module. [http://whytheluckystiff.net/syck/] Sorry about that. _why