From: Ned Konz Date: 2002-07-28T00:04:31+09:00 Subject: Re: merge procs On Saturday 27 July 2002 07:45 am, Tom Sawyer wrote: > okay, i've been staring blankly at this thing for almost 2 days > now. i can't seem to think of a solution. > > the problem i'm having can be solved if i can get two seperate > Procs to execute under the same scope: They act as closures, so this is generally possible. x = 10 p = proc { x } q = proc { 2 * x } p p.call + q.call However, in your example, x is local to the first proc. Also, you might be able to use a Binding, and pass it to eval. > in general my problem is that i need to keep one processes seperate > so that it is reusable. What do you mean? -- Ned Konz http://bike-nomad.com GPG key ID: BEEA7EFE