----- Original Message -----
From: transfire / gmail.com
Date: Wednesday, June 7, 2006 3:46 pm
Subject: Re: Hash to OpenStruct (#81)
To: ruby-talk / ruby-lang.org (ruby-talk ML)

> 
> Ola Bini wrote:
> > At 13:53 2006-06-07, you wrote:
> > > > because the 'y' will be translated to a boolean true, per the 
> YAML spec,
> > >
> > >I'm pretty sure that implict conversion only occurs for values not
> > >keys.
> > >
> > >T.
> >
> > Not correct:
> >
> > irb(main):002:0> YAML.load("a: b\nyes: false\n")
> > {"a"=>"b", true=>false}
> 
> Hmm... I'll have to investigate that. Is it according to the spec?
> 
> T.
> 

Yes, I actually believe so, since it says explicitly in the spec that
mapping keys can be any kinds of object, not even scalar, and
specifically not just str.

Anyway, take a look at the discussion in yaml-core, for a continuation
of this issue.

/O