Been playing around a bit, trying to see if there is an elegant way to do
what I want without duplicating code. Let me throw up some pseudo-code and
see if that explains it enough:
foo: make object! [
pos: random 10x10
]
bar: make foo []
Now, the way REBOL works, foo is evaluated and makes an object, that happens
to have a random pos (say 6x2). When I make bar, it gets a copy of foo/pos
(6x2). Is there a way so that REBOL will, instead, re-evaluate when creating
bar so that pos is now a new, random pair? Obviously, I can just make a
function to do this:
make-foo: does [
make foo [
pos: random 10x10
]
]
bar: make-foo
And that's fine, but if there is a way to do it the way I'd like to, then it
would be nice to know.
Thanks!
Jeff M.
--
[EMAIL PROTECTED]
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.