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

[REBOL] Re: Strange behaviour in Make object?

From: james:mustard at: 13-Nov-2001 22:48

Brett Handley said:
> Hi James, > > I can't shed any light on it. But I do suggest that rather using MAKE > OBJECT! directly you use MAKE FACE > so that you are assured of having the correct View fields constructed > properly. > > There is some evidence to suggest that the View engine interfaces with
these
> objects in a low level way and order of the fields could be important.
Much
> better to follow the convention. > > Brett. >
Yup - was just curious as to why changing the order was causing issues. I had a similar problem on another object where a field immediately following a pair was causing display errors if it was an integer field eg: Obj1: make object! [ var1: 0x0 var2: 1 var3: make get-style 'face [ ... ] ... ] This would also seem to build correctly but on creating a new object with make obj1 [] the var3 would be ignored and often weird errors would result - I had one case where a pair was being assigned to an object, seemingly from nowhere. I swapped the order of 2 custom variables I had defined and was surprised to find that it now worked. Go figure ;-) James