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

[REBOL] Re: custom operators !?

From: AJMartin:orcon at: 25-Jul-2003 6:18

max wrote:
> can we now build our own operators?
No, not directly in Rebol, AFAIK. But Gabriele's custom-types might allow this? Alternatively, you could use a dialect, like this simplistic example:
>> a: 123
== 123
>> parse [a += 2] [set Word word! '+= set Increment integer! (set Word
Increment + get Word) end] == true
>> a
== 125 Andrew J Martin ICQ: 26227169 http://www.rebol.it/Valley/ http://Valley.150m.com/