Re: eval() and lexical introspection in Parrot

2007-12-19 Thread Patrick R. Michaud
On Wed, Dec 19, 2007 at 10:57:27PM -0600, Patrick R. Michaud wrote: > On Wed, Dec 19, 2007 at 11:15:46PM +0100, Mehmet Yavuz Selim Soyturk wrote: > > > One temporary workaround that I considered for this problem > > > would be to have eval() use introspection on its caller to > > > create a "wrappe

Re: eval() and lexical introspection in Parrot

2007-12-19 Thread Patrick R. Michaud
On Wed, Dec 19, 2007 at 11:15:46PM +0100, Mehmet Yavuz Selim Soyturk wrote: > > One temporary workaround that I considered for this problem > > would be to have eval() use introspection on its caller to > > create a "wrapper sub" that duplicates the lexical environment of > > the caller, and then u

Re: eval() and lexical introspection in Parrot

2007-12-19 Thread Mehmet Yavuz Selim Soyturk
> One temporary workaround that I considered for this problem > would be to have eval() use introspection on its caller to > create a "wrapper sub" that duplicates the lexical environment of > the caller, and then use that as the target of an :outer() > flag when it's passed to imcc. For example,