[REBOL] Re: Series essay Re:(6)

Gabriele wrote:

> From: [EMAIL PROTECTED]
> Date: Wed, 29 Dec 1999 18:49:39 +0200
> Subject: [REBOL] Re: Series essay Re:(6)
> X-SELMA: [REBOL] 65619

> Actually, every word parsed by LOAD automatically goes to
> SYSTEM/WORDS. Try the following code on a fresh REBOL:
>
> print first system/words ; this is BIG!
> to-word "undefined-word"
> print first system/words
>
> You will see undefined-word at the end of the printed block.

You are right, but the example is misleading because you don't use 'load and
we could think that it is 'to-word that inserts the words in system/words.
I'd rewrite your example this way:

(open a new REBOL session)
>> load "uNdefined-wOrd"
== uNdefined-wOrd
>> find first system/words 'uNdefined-wOrd
== [uNdefined-wOrd]

Or in this way:

(open a new REBOL session)
>> uNdefined-wOrd
** Script Error: uNdefined-wOrd has no value.
** Where: uNdefined-wOrd
>> find first system/words 'uNdefined-wOrd
== [uNdefined-wOrd]

IIRC what we type on the console is passed to 'do which does a 'load

Ciao,
Daniele.

Reply via email to