Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] paths & lookups & change

From: robert:muench:robertmuench at: 18-Oct-2003 10:16

Hi, I seem to be stucked here:
>> test
== ["Bug Report" 1]
>> key
== "Bug Report"
>> type? select test key
== integer!
>> add select test key + 1
** Script Error: Cannot use add on string! value ** Near: add select test key + Hmm... Ok, maybe a priority problem:
>> add (select test key) + 1
** Script Error: add expected value2 argument of type: number pair char money date time tuple ** Near: add (select test key) + 1 Strange. Shouldn't this be possible? I would like to write something like this, to increment the integer in the block: test/:key: test/:key + 1 How can I do such a thing? Using to-set-path? I tried but failed. Robert