[REBOL] Re: Which? [Object! Block!]
From: al:bri:xtra at: 28-Sep-2001 5:59
Ammon wrote:
> compose [(to-set-word first l) (to-word "make lyt[") (nw-lyt)
You need a set-word for the outer object.
to-set-word first l compose ; etcetera.
> (if [length? l > 3] [
> vls: fourth l
> ])
This is slightly better:
(vls: none if 3 < length? l [vls: fourth l])
> then the other reason is that the layouts get DOne when they are viewed.
I need them to not be in the global namespace. Block! maybe better, I am
just not sure.
perhaps better would be to surround each layout with it's own context? Like:
o: make object! [
f: none
l: layout [f: field "default"]
]
that way the 'f in the layout dialect refers to the f in o?
By the way, your code seems very confused. perhaps you could rewrite it with
better name choices and start with something really simple?
Andrew Martin
ICQ: 26227169 http://zen.scripterz.org