[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
> There is some evidence to suggest that the View engine interfaces with
> objects in a low level way and order of the fields could be important.
> better to follow the convention.
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! [
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 ;-)