another interesting thing you might want to know about this bug is...

let's say you save an object to the same file n times (where n is any arbitrary 
number). But each
time you save it, the object was in a different state (ie. a field in the object was 
different each
time). The save will work fine. But if at any time after the object happens to be in 
the same state
as any of those n earlier states, and then you save, this bug will occur and file will 
be
corrupted..


Rishi


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 15, 2000 2:07 PM
Subject: [REBOL] save bug Re:


> What version are you using? The latest experimental builds don't seem to
> exhibit this behavior.
>
>   - jim
>
> At 01:39 PM 9/15/2000 -0700, you wrote:
> >Here is a bug I found while programming rebol. do following in rebol shell:
> >
> > >> obj: make object! [
> >[    f: "field" ]
> > >> save %shoot.txt obj
> >
> >this will save a text file containing object in file shoot.txt. If you
> >open shoot.txt, you will
> >notice that the object is saved as follows:
> >
> >make object! [
> >     m: "method"
> >]
> >
> >now enter the the last entry again into the command line:
> >
> > >> save %shoot.txt obj
> >
> >now if you open up shoot.txt, the object is saved as follows:
> >
> >make object! [...]
> >
> >This is incorrect. It did not save the object right and you can no longer
> >retreive this object using
> >load.
> >
> >So the basic bug is that if you save the same exact object to a file
> >twice, the second time it
> >doesn't work. Notice that if you alter the state of the object (such as
> >set m to something else),
> >and then save it, it will be saved correctly.
> >
> >This bug has been such a pain for me today!!!!
> >
> >Rishi
>

Reply via email to