FAQ
[Top-posted]

The extra cost would be:
1. Array storage
2. Push
3. Pop

At the cost of supporting any level of nesting, I think it's a negligible
cost, but I would profile it.

On Wed, Jan 13, 2016 at 7:50 PM, Kent Fredric wrote:
On 14 January 2016 at 07:39, Chad Granum wrote:
Right now the version I have up on cpan just stores them on creation, and
restores them on final release. Nothing happens for nested calls to
context()/release(), all my downstream testing shows no breakages (not a
full smoke, but does include several modules sensitive to $! and $@
changes).

In the event some code like this dies:

sub foo {
my $context = context();
die "Bar";
}

What will happen with regards to $@ auto-stacking?

If somebody catches the die in a higher context, what will $@ be?


--
Kent

KENTNL - https://metacpan.org/author/KENTNL

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 19 of 28 | next ›
Discussion Overview
groupcpan-workers @
categoriesperl
postedJan 12, '16 at 12:53a
activeJan 18, '16 at 10:52p
posts28
users8
websitecpan.org

People

Translate

site design / logo © 2018 Grokbase