[REBOL] Re: localized func alternative...
From: lmecir:mbox:vol:cz at: 28-Feb-2004 8:06
Maxim Olivier-Adlhoch napsal(a):
>Has anyone programed an alternative to func (function, has, does) which declares every
set-word as local by default?
>I find rebol's liberal use of global namespace to be the most limiting factor in scaling
rebol to large tools.
>I'd rather have to define global words than local words (especially in api tools).
>There is MUCH less chance that incidious errors will be generated or exposed.
>A notable example is the recent S: variable useage in the sql tool which would not have
you can use http://www.fm.vslib.cz/~ladislav/rebol/lfunc.r (uses local
variables), or, if you want to have a function having *static* local
variables in addition, use http://www.fm.vslib.cz/~ladislav/rebol/sfunc.r