[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] environment-safe functions



Committed. Documented briefly in Function and in more detail in Environment.
hjh

On Nov 24, 2007, at 7:23 PM, James Harkins wrote:

Or, slightly tighter (avoids redundant assignment if envir is not nil):

+ Function {
inEnvir { |envir|
envir ?? { envir = currentEnvironment };
^{ |... args| envir.use({ this.valueArray(args) }) }
}
}

hjh


: H. James Harkins

: jamshark70@xxxxxxxxxxxxxxxxx

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman