Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Weird results with YAML using anchors and sequences
Luis Lavena
7/2/2008 2:25:00 PM
Hello everybody!
I've been using YAML more extensively lately, and hit a wall today. I
tried to narrow the problem to the minium here:
http://pastie.org/private/xmrb0lztt...
On the pastie, you can see the usage of anchors and sequences, as
described in the YAML specs 1.1, Structures, anchors and aliases.
http://yaml.org/spec/1.1...
But for some reason, MRI yaml eat always the last item in the
sequence, but only in the one with the anchor.
Moreover. RbYAML which is the one used in JRuby parses the .yml file
correctly.
Anyone encountered this kind of problems with MRI builtin YAML, or I'm
doing something wrong? (which usually happens).
Thanks in advance for your time.
Regards,
--
Luis Lavena
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Weird results with YAML using anchors and sequences
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password