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

[REBOL] why doesn't this work?

From: jeff621::yahoo::com at: 14-Mar-2001 16:25

this doesn't work: write %params.txt {param1: false} params: make object! to-block read %params.txt returns: ** Script Error: false is not defined in this context. ** Where: param1: false this does work: params: make object! [param1: false] -- as you'd expect and this works too: write %params.txt {param1: "text"} params: make object! to-block read %params.txt And that's what's baffling me. I'd like to store parameters in a file outside of my code. I'd like to use an object inside the code to hold the parameters. If I create the object inside the code - then read the parameter file stored on disk and over-write any values in the default parameter object, it allows the user to overwrite only some parameters. So - why is a boolean value not ok in this context? Any clues anyone? thanks, -Jeff