It appears that you are understanding the word
 "SET" to mean "insert," as in "set in place."

That's not it's meaning in this case.

"set" means "assign a value to," as when
 you declare a variable and then assign it a value.

You were trying to assign a value to a variable that
 did not exist.

the documentation seems clear enough to me.

Greg






---------- Original Message ----------------------------------
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Wed, 7 Jun 2000 13:41:38 -0500

>The documentation is very poor concerning objects because there is a 
>paragragh in the objects documentation as follows...
>
>
>The in function can also be used to set words:
>       set in fred 'balance $20.00
>
>       print fred/balance
>       $20.00
>
>
>This paragraph is telling me I can set a new value into an existing object 
>using the following syntax...
>
>set in object 'word value
>
>But obviously it doesn't work.
>
>
>The following does work, however, and thank you for the help.
>
>-Ryan
>
>> >> ob1: make object! [x: "hello"]
>> >> ob1: make ob1 [y: "world"]
>> >> probe ob1
>> 
>> make object! [
>>     x: "hello"
>>     y: "world"
>> ]
>
>
>

Reply via email to