Hello RChristiansen
Here is one way to do what you want:
>> ob1: make object! [x: "hello"]
>> ob1: make ob1 [y: "world"]
>> probe ob1
make object! [
x: "hello"
y: "world"
]
The line
ob2: make ob1 []
will clone ob1 and any definitions placed in the argument block will be
added to those in ob1. If a varname in the block is already in ob1, it will
be redefined to the new value in ob2.
HTH
Larry
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 10:42 AM
Subject: [REBOL] set in object 'variable "string"
> How can I add a string to an existing object? The available documentation
> does not explain this.
>
> Here is my console session...
>
> >> test-object: make object! [x: "string"]
> >> probe test-object
>
> make object! [
> x: "string"
> ]
>
> >> set in test-object 'y "another string"
> ** Script Error: set expected word argument of type: any-word block.
> ** Where: set in test-object 'y "another string"
>
> >> another-string: "another string"
> == "another string"
> >> set in test-object 'y another-string
> ** Script Error: set expected word argument of type: any-word block.
> ** Where: set in test-object 'y another-string