[REBOL] Re: VID: layout problem
From: greggirwin:mindspring at: 17-Oct-2002 11:21
Hi Robert,
<< I'm using to-set-path and not to-set-word because field can be a path
too.
...If I change to-set-path to-set-word everything works fine. >>
If you use a string value (e.g. "a/b/c") TO SET-WORD! should work on it, but
it does fail on true path values. Will that work for you with the way you're
generating the code? If you have a path! value already, you could do this:
path-to-set-word: func [path] [
to set-word! rejoin [first path "/" next path]
]
path-to-set-word 'x/y/z
path-to-set-word 'abc/def/ghi
--Gregg