[REBOL] [bind] Patrick's pages ; using 'local ; using bind/copy
From: rebol:meurrens at: 14-May-2003 23:15
Hi Romano,
Taking your message in account,
I have modified the page
http://rebol.mksa.net/bind-demo-1.r?help
and the script
%http://rebol.mksa.net/bind-demo-1.r
to show the availability (and eventually unavailability) of 'local
under different circumstances.
There are subtil differences illustrated on this page
e.g. between function and func ...
Practically, when a function is created with the word 'function
(and I personnally prefer this fully explicit construction over
the 'func 'has 'does and even make function! ...)
'local is allways available (yields none if unused in the call of the
function).
On the other hand,
you point out a situation where there is a function without local words...
But, in this case, what could be the good reason to bind a word or a block
to an "unexisting" context...
I was unsucessfull to find a realistic example where one would like to bind
a block
in such circumstances ... ???
Best regards,
</marc>
At 14:12 14/05/2003 +0200, Romano Paolo Tenca wrote:
>Hi Marc
>
> > 1. I think that it would be more neat to *allways* bind,
> > when binding your words to a local function context,
> > by referring to 'local (the pseudo refinement allways present...) rather
> > than relying
> > on a specific variable. It works also for functions without parameters...
>
>But not for function without local words:
>
Prof. Ir Marc Meurrens, Brussels (be)
TEL: +32 (0)2 537 2812
FAX: +32 (0)2 537 7645
EMAIL: [marc--meurrens--org]
URL: http://www.meurrens.org/
REB: http://rebol.mksa.net/
PGPKEY: http://www.meurrens.org/pgp/
Please don't mail me attached files, instead, use my 'exchange area' :
EXCHANGE AREA: http://www.meurrens.org/exchange/
(HTTP/FTP upload/download of temporary/persistent files)