From: thebox Date: 2007-03-04T07:50:06+09:00 Subject: Re: YAML issue with Set? On Mar 3, 11:07 am, Stefano Crocco wrote: > As far as I can tell (I'm not a YAML expert), no. I've made a few trials, and > it seems that class Hash (which is used internally by Set), has problems with > loading / dumping when keys are custom classes. For instance, using irb > (ruby -v gives ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-linux], on gentoo) > : [...] > There is a bug report for this problem:http://rubyforge.org/tracker/?group_id=426&atid=1698&func=detail&aid=... Thanks, this makes a lot of sense. I'll stay away from Hash-based collection with custom classes and YAML for now. Giuliano