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

[REBOL] Re: 'Subtract vs '-

From: greggirwin:mindspring at: 6-Jul-2004 8:29

Hi Hallvard,
>>> minus: :- >>> minus a b
HY> ** Script Error: Cannot use negate on tuple! value HY> ** Near: minus a b
>>> a minus b
You're not getting the function you expect. Look at the error message again and you'll see that it refers to the NEGATE function.
>> fn: :- >> fn 5
== -5 It might still be a good feedback for RT to ask *why* we get the negation op instead of the subtraction op; same if you use GET on '-. -- Gregg