The best way to achieve this (IMHO) is to simply use CONTEXT. This sets everything within an object and you can set global words using SET. A note about setting words this way though, they have the context of the CONTEXT they are set in so while they are global, their values are relative to the context.
Enjoy!! ~~Ammon ;~> ----- Original Message ----- From: "Maxim Olivier-Adlhoch" <[EMAIL PROTECTED]> To: "Rebol-List (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, February 27, 2004 3:39 PM Subject: [REBOL] localized func alternative... > > Hi all, > > 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 occured. > > > TIA! > > -MAx > --- > "You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun." > > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > > > > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
