Dynamic scoping (was: Proposal: Squeak-E = Squeak x Kernel-E)

Avi Bryant avi at beta4.com
Mon Jan 27 20:37:54 UTC 2003

On Mon, 27 Jan 2003, Avi Bryant wrote:

> If you want to be able to set multiple bindings at once, I would suggest
> DynamicContext bindAll: {#foo -> 42} during: [...]

Stephen, might I also suggest that if you need the feature from
RuntimeEnvironments of child processes keeping their parent's dynamic
context, rather than special casing it, you do something like this:

  context := DynamicContext bindings.
  ^ [DynamicContext bindAll: context during: self] fork

More information about the Squeak-dev mailing list