[REBOL] Re: How to edit /View mezzanine functions ?
From: lmecir:mbox:vol:cz at: 19-Nov-2001 9:21
Anton described the source of your trouble.
OTOH, the words "know" their context (As has been described in
http://www.sweb.cz/LMecir/contexts.html For Anton: see the IN-OBJECT?
function, which can be used for Words, although not for Set-words, etc.)
while they aren't converted to strings. That means, that you can use the
spec: third :request-color
body: second :request-color
After editing the block using INSERT, CHANGE, PICK etc. you can create a new
version of request-color e.g. like:
new-request-color: func (load mold spec) body
The problem is that request-color is
defined somewhere deep in vid context-land. :)
And this means that some words maybe not
accessible in the global context.
The first one I see is color-lay:
** Script Error: color-lay has no value
** Near: color-lay
When we just redefine request-color,
its function body block has been defined
in the global context. This means it
can no longer color-lay (also defined
somewhere in vid land).
This could help you
insert second :request-color [print "hello"]
but if you try to use words like color-lay
that are not defined in the global context
(like color-lay) then you will run into trouble.
I think this could work if I knew in which
context request-color was defined:
insert second :request-color bind [
if none? :color-lay [print "hi"]
I will need to look through the system object for
a while to find where the heck the context is.
I'd like to make a search tool for that sort