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

[REBOL] 'Subtract vs '-

From: hallvard::ystad::oops-as::no at: 6-Jul-2004 11:45

Hello, I have this console session:
>> a: 20.20.20
== 20.20.20
>> b: 10.10.10
== 10.10.10
>> a - b
== 10.10.10
>> a subtract b
** Script Error: subtract expected value2 argument of type: number pair char money date time tuple ** Near: subtract b
>> minus: :- >> a minus b
** Script Error: Cannot use negate on tuple! value ** Near: minus b
>>
Why is it that I can only get '- to work on tuples? What did I overlook? HY