[REBOL] Re: paths & lookups & change
From: rebol:techscribe at: 23-Oct-2003 23:30
Hi Robert.
My preference for this kind of tasks is using objects. Even though it is
a little more verbose, I find it quite intuitive to use the get and set
functions, as in:
>> db: make object! reduce [ to-set-word "first word" 1 to-set-word
second word
2 ]
>> probe db
make object! [
first word: 1
second word: 2
]
>> key: to-word "second word"
>> set in db key (get in db key) + 1
>> probe db
make object! [
first word: 1
second word: 3
]
Elan
Brett Handley wrote: