[REBOL] Re: Redefining system words - gotchas
From: tim-johnsons:web at: 27-Apr-2007 7:33
On Friday 27 April 2007 06:27, Anton Rolls wrote:
> Hi Tim,
>
> Do you need 'sys-pick to point to the original ?
> How about this:
>
> if action? :pick [pick: ...]
>
> Keep in mind the whole world of rebol code is expecting
> PICK to be the built-in one.
Of course!
> Why not just define 'my-pick or 'tj-pick and leave poor 'pick alone ?
ugh! not good choices... for my taste anyway.
My question is kind of academic, for a global word, I would "pick" a
different one. My choice turned out to be
"peek".
for the sake of anyone reading the thread however, I must include that there
is much code written where system words have redefined. Where I think it is
most safe to do so is inside of a context.
thanks
tim
--
Tim Johnson <tim-johnsons-web.com>
Palmer, Alaska, USA