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

[REBOL] Re: Extend system functions

From: greggirwin::mindspring::com at: 15-Apr-2002 3:48

Hi Alessandro, << Does anybody know how I can "extend" a system Rebol command? >> You can replace any system command you want, unless they're protected with the PROTECT function, *however* changing the behavior of standard system functions is generally frowned upon because it just gets too confusing. The recommended approach is to create your own functions, with a similar name. As far as extending their functionality, try using the SOURCE function. Many routines are written in REBOL (they are called mezzanine functions) and you can see the source code to them so you can copy it right out and extend it. --Gregg