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

[REBOL] object funnies

From: gchiu::compkarori::co::nz at: 18-Oct-2001 11:07

I've been puzzling over this one. I have a game object like this: gomoku: make object! [ cellsize: 20 do-preview: does [ uses the value of cellsize ] resize-board: does [ cellsize: new_computed_value ... ] ] When I call the function 'resize-board, it changes the cellsize value correctly - printing it to console to confirm that it has changed, but when I call the 'do-preview function directly after this, it still shows the original value. There are no other functions that change the value of 'cellsize. Ideas? Have I corrupted the interpreter somewhere that might be doing this? -- Graham Chiu