Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] save bug

From: rishi::picostar::com at: 15-Sep-2000 13:39

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