Re: [Pugs] Bugs (another return statement bug)

2005-03-08 Thread Joost Diepenmaat
On Tue, Mar 08, 2005 at 12:41:40PM +0100, Joost Diepenmaat wrote: > +todo_is(eval( > +'sub swap ([EMAIL PROTECTED] is rw) { @_[0,1] = @_[1,0]; } > [EMAIL PROTECTED] = qw(1 2); > +swap(@in); > [EMAIL PROTECTED]'), > +"2 1","swap"); Meh. That's wrong. it shoud be: todo_is(eval( 'sub swap ([EMA

Re: [Pugs] Bugs (another return statement bug)

2005-03-08 Thread Joost Diepenmaat
On Mon, Mar 07, 2005 at 06:08:21PM -0500, Stevan Little wrote: > Autrijus and Co. > > I have found another weird bug. It apprears to be a problem with the > way the return statement handles Array refs and Hash refs in scalar > context. I have some tests in t/op/sub_return_values.t which test the