[#7055] More on VC++ 2005 — Austin Ziegler <halostatue@...>

Okay. I've got Ruby compiling. I'm attempting to get everything in

17 messages 2006/01/05
[#7058] Re: More on VC++ 2005 — nobuyoshi nakada <nobuyoshi.nakada@...> 2006/01/06

Hi,

[#7084] mathn: ugly warnings — hadmut@... (Hadmut Danisch)

Hi,

22 messages 2006/01/10
[#7097] Re: mathn: ugly warnings — Daniel Berger <Daniel.Berger@...> 2006/01/10

Hadmut Danisch wrote:

[#7098] Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/10

Daniel Berger wrote:

[#7118] Re: Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/12

*Dean Wampler *<deanwampler gmail.com> writes:

[#7226] Fwd: Re: Question about massive API changes — "Sean E. Russell" <ser@...>

Hello,

23 messages 2006/01/28
[#7228] Re: Question about massive API changes — Caleb Tennis <caleb@...> 2006/01/28

>

Re: yaml and Bignum

From: Joel VanderWerf <vjoel@...>
Date: 2006-01-17 19:38:00 UTC
List: ruby-core #7172
Joel VanderWerf wrote:
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/6131
> 
> The above fix seems to still be needed in ruby-1.8.4, to fix the
> following problem:
> 
> irb(main):005:0> t = Time.now.to_i
> => 1137525209
> irb(main):006:0> y t
> --- !ruby/object:Bignum 1137525209
> => nil
> irb(main):007:0> t.to_yaml
> => "--- !ruby/object:Bignum 1137525209\n"
> irb(main):008:0> YAML.load(t.to_yaml)
> TypeError: allocator undefined for Bignum
>         from /usr/local/lib/ruby/1.8/yaml.rb:133:in `transfer'
>         from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
>         from (irb):8

Sorry, the fix in ruby-core/6131 is not so great:

irb(main):007:0> class Bignum
irb(main):008:1>      yaml_as "tag:yaml.org,2002:int"
irb(main):009:1>     end
=> Bignum
irb(main):010:0> y 6
--- !int:Fixnum 6

What about the patch in ruby-core/6159?

-- 
      vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

In This Thread