[REBOL] Re: localized func alternative...

2004-03-01 Thread Maxim Olivier-Adlhoch
TED] > Sent: Saturday, February 28, 2004 2:06 AM > To: [EMAIL PROTECTED] > Subject: [REBOL] Re: localized func alternative... > > > > Maxim Olivier-Adlhoch napsal(a): > > >Hi all, > > > >Has anyone programed an alternative to func (function, has, >

[REBOL] Re: localized func alternative...

2004-02-27 Thread Ladislav Mecir
Maxim Olivier-Adlhoch napsal(a): >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 ha

[REBOL] Re: localized func alternative...

2004-02-27 Thread Brett Handley
Ammon wrote: > 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

[REBOL] Re: localized func alternative...

2004-02-27 Thread Tim Johnson
* Maxim Olivier-Adlhoch <[EMAIL PROTECTED]> [040227 14:05]: > > 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 re

[REBOL] Re: localized func alternative...

2004-02-27 Thread Ammon Johnson
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