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

[REBOL] Re: ANN: custom-types.r

From: g:santilli:tiscalinet:it at: 15-Mar-2003 9:49

Hi Brett, On Saturday, March 15, 2003, 4:57:05 AM, you wrote: BH> In an earlier example you showed: BH> i: to complex! [0 1] BH> which does not seem to work (I know the make method works) - just wondering BH> if how To is to be used? I decided to not patch the global native actions (this slows down REBOL noticeably, and would probably make custom-types.r not worth it). So you can write:
>> i: to* complex! [0 1] >> form* i
== "0 + 1i" or:
>> do bind [
[ i: to complex! [0 1] [ form i [ ] in actions* 'self == "0 + 1i" Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r