Re: [perl #56274] [PATCH] Re: design problem with :outer

2008-06-24 Thread Patrick R. Michaud
On Tue, Jun 24, 2008 at 03:43:34PM -0700, Mehmet Yavuz Selim Soyturk via RT wrote: > There is another problem with :outer. It does not let you create inner > functions dynamically. For example, I couldn't use it to compile next > ECMAScript code: > > function outer() { > var i = 0; >

Re: [perl #56274] [PATCH] Re: design problem with :outer

2008-06-24 Thread Mehmet Yavuz Selim Soyturk
There is another problem with :outer. It does not let you create inner functions dynamically. For example, I couldn't use it to compile next ECMAScript code: function outer() { var i = 0; return eval("function() { return i++; }"); } Is it not possible to have an opcode tha