[REBOL] Re: making objects from block content
From: greggirwin:mindspring at: 26-Jun-2002 10:58
Hi Thorsten,
<< i have an object-prototype from which i want to produce new objects. As
well
i have a block containing number, which should be the new objects name like
this.
a: ["2134324" "45674587" "34503"]
>>
As Carl pointed out, it's not generally a good idea to use numbers as IDs,
but it is technically possible in REBOL (where it wouldn't be in most other
languages).
>> a: ["2134324" "45674587" "34503"]
== ["2134324" "45674587" "34503"]
>> id: to set-word! first a
== 2134324:
>> set 'id make object! [x: 1]
>> probe id
make object! [
x: 1
]
--Gregg