[REBOL] Re: Hack
From: sunandadh:aol at: 29-Dec-2001 5:06
Hi Romano,
> > > Only the third time the hack fails.
> >
> > I think you mean the 2nd fails, the first and last work.
>
> No, the third:
Thanks for the correction.
In case you didn't pick it up in my earlier email, the Sept 2000 (the latest,
I think) Rebol/Core User Guide says of the Error/Where field
"The where field is reserved"
This is the only place I can find in that manual where something is
specifically designated reserved.
That means your hack may not work in future versions. But I hope also it
means that RT are planning to turn 'Where into a richly meaningful object of
error-context information.
<snip>
> If you write the objects, you could do something like:
<snip>
Another nice Rebol hack!
It's not immediately useful to me as I tend to have objects "two deep". I
could use it at the first level:
make-ob-name 'f [a: 1 b: 2]
but to base an object on that, I still need to write
g: make f [c: 3] g/self-name: 'g
So it's as easy to follow Joel's suggestion of coding the identifier in the
object.
Sunanda.