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

[REBOL] Re: x: :y question

From: g:santilli:tiscalinet:it at: 4-Feb-2003 12:47

Hi Boleslav, On Tuesday, February 4, 2003, 9:38:14 AM, you wrote: BB> op: either x < 0 [:+][:-] BB> a: a op 1 op: either x < 0 [:add] [:subtract] a: op a 1 But then, I'd write it as: a: a + sign? - x (Well, there's a little difference, this does nothing if x is zero, while yours subtracts 1.) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r