[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: YAML self reference issue

Steve Tuckner

11/24/2003 7:30:00 PM

Oops my bad.

So it is not necessary to run it twice to see this behavior. New output:

Creating new file
y = a
y2 = Hash

Steve Tuckner

> -----Original Message-----
> From: T. Onoma [mailto:transami@runbox.com]
> Sent: Monday, November 24, 2003 11:38 AM
> To: ruby-talk ML
> Subject: Re: YAML self reference issue
>
>
> On Monday 24 November 2003 05:40 pm, Steve Tuckner wrote:
> > y = YamlTest.load
> > puts "y = #{y.a.class}"
> > y.save
> > y2 = YamlTest.load
> > puts "y2 = #{y.a.class}"
>
> First of all is the last line supposed to be:
>
> puts "y2 = #{y2.a.class}"
>
> -t0
>

2 Answers

why the lucky stiff

11/24/2003 7:48:00 PM

0

On Monday 24 November 2003 12:30 pm, Steve Tuckner wrote:
> Oops my bad.
>
> So it is not necessary to run it twice to see this behavior. New output:
>
> Creating new file
> y = a
> y2 = Hash

This has been fixed in Ruby 1.8.1 previews and Syck CVS. (The bug is about
three months old now. Sorry.)

_why




T. Onoma

11/24/2003 7:49:00 PM

0

On Monday 24 November 2003 08:30 pm, Steve Tuckner wrote:
> Oops my bad.
>
> So it is not necessary to run it twice to see this behavior. New output:
>
> Creating new file
> y = A
> y2 = Hash

Okay, What's the file look like before its saved? And after its saved? Are
they the same? What is it saying for --- !object/ruby: ?

-t0