in reply to Re: How does CATCH_SET optimize efficiency?
in thread How does CATCH_SET optimize efficiency?
When the tie FETCH method is called, je_mustcatch is set to true, so the first time pp_entertry is called, it pushes a new jump level and enters a new runops loop. The second and third time pp_entertry is called, je_mustcatch is false, so the try block is executed within the current (inner) runops loop.sub FETCH { for (1..3) { eval { $x } } } sub TIEARRAY { bless [] } my @a; tie @a, 'main'; $y = $a[0];
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How does CATCH_SET optimize efficiency?
by PerlOnTheWay (Monk) on Dec 16, 2012 at 14:06 UTC | |
by dave_the_m (Monsignor) on Dec 16, 2012 at 18:08 UTC | |
by PerlOnTheWay (Monk) on Dec 17, 2012 at 04:11 UTC | |
by dave_the_m (Monsignor) on Dec 17, 2012 at 15:54 UTC | |
by PerlOnTheWay (Monk) on Dec 18, 2012 at 01:16 UTC | |
|