Extend system functions
[1/3] from: riusa:email:it at: 15-Apr-2002 10:38
Hi!
Does anybody know how I can "extend" a system Rebol command?
I wish to extend some commands (i.e. "Copy") to perform more jobs (I
wish to use COPY command to copy files from... to...): Can I add further
refiniments (i.e. /file or /directory) but maintaining all original
command functionality?
thanks!
--Alessandro--
--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
Sponsor:
Sai cosa =E8 una "lampada di sale"? scoprilo qui:
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=373&d=15-4
[2/3] 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
[3/3] from: riusa:email:it at: 15-Apr-2002 13:42
Thanks for the suggestion!
bye!
--Alessandro--
> 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
>
> --
--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
Sponsor:
Il modo pi=F9 semplice e conveniente per mandare bouquet e composizioni floreali in tutta
Italia.
Rapporto personalizzato con il Tuo fiorista, ad i prezzi pi=F9 bassi del Web.
La qualit=E0 =E8 garantita!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=367&d=15-4