Re: YAML::Store: {":..." => true}

From: nobu.nokada@...
Date: 2004-05-13 01:36:17 UTC
List: ruby-core #2871
Hi,

At Thu, 13 May 2004 08:35:01 +0900,
Kazuhiro NISHIYAMA wrote in [ruby-core:02869]:
> YAML::Store does not store the key strings correctly:

Seems syck's bug.

  $ ruby -ryaml -e 'p YAML.load(":x".to_yaml)'
  :x
  $ ruby -ryaml -e 'p YAML.load(":x".to_yaml).class'
  Symbol

I guess, parhaps, preceeding colon should be handled in
gramm.y:sycparse(), instead of rubyext.c:yaml_org_handler().

-- 
Nobu Nakada

In This Thread

Prev Next