[REBOL] Strange behaviour in Make object?
From: james::mustard::co::nz at: 13-Nov-2001 18:26
Hi, I have been writing some widgets and have noticed some rather puzzling
behaviour in the make spec.
Example1 below draws the object correctly - Example2 is a minor change but
the object no longer displays. Could anyone shed some light on this
behaviour?
Ex1: (BUILDS AND DISPLAYS CORRECTLY)
XScroll: make object! [
type: 'face
offset: 0x0
size: 0x0
span: none
pane: copy []
text: color: image: effect: data: none
max: 100
...
]
Ex2: (BUILDS BUT DOES NOT DISPLAY CORRECTLY)
XScroll: make object! [
type: 'face
offset: 0x0
size: 0x0
pane: copy []
span: text: color: image: effect: data: none
max: 100
...
]
Only one thing was changed - the [span: none] was moved to join the rest of
the none values - yet doing this resulted in the face not displaying when
later added to a window.
James (Puzzled?)