From: Kent Sibilev Date: 2005-10-04T23:44:40+09:00 Subject: Re: Ruby 1.8.3: YAML.dump/load cannot handle Bignum I think you're right.How about something like this: RCS file: /src/ruby/lib/yaml/rubytypes.rb,v retrieving revision 1.16.2.9 diff -u -r1.16.2.9 rubytypes.rb --- lib/yaml/rubytypes.rb 20 Sep 2005 06:46:45 -0000 1.16.2.9 +++ lib/yaml/rubytypes.rb 4 Oct 2005 12:43:02 -0000 @@ -368,7 +368,7 @@ end end -class Fixnum +class Integer yaml_as "tag:yaml.org,2002:int" end Kent. On Tue, 2005-10-04 at 00:12 +0900, ts wrote: > >>>>> "K" == Kent Sibilev writes: > > K> +class Bignum > K> + yaml_as "tag:yaml.org,2002:int" > K> +end > K> + > > Try it : > > moulon% ./ruby -ryaml -e 'puts YAML.load(YAML.dump(1234567890))' > class Fixnum held ownership of the tag:yaml.org,2002:int tag > 1234567890 > moulon% > > > perhaps best to use Integer ??? > > > Guy Decoux >