develooper Front page | perl.perl5.porters | Postings from October 2011

Re: Are exceptions "still broken" in core Perl?

Thread Previous | Thread Next
Jesse Luehrs
October 25, 2011 07:28
Re: Are exceptions "still broken" in core Perl?
Message ID:
On Tue, Oct 25, 2011 at 03:10:52PM +0100, Zefram wrote:
> Tom Christiansen wrote:
> >      * $@ might not be a true value
> That still exists.

Can it? I tried getting this to happen in 5.14, and couldn't - the only
way I knew how was to have a destructor that called eval get called as
the enclosing eval finished, and that doesn't happen anymore in 5.14,
since destructors localize @$.

Well, i suppose it can obviously happen if you do anything at all
between the eval and checking $@, and that's a reasonable reason to want
something like Try::Tiny (so that those two operations can't be
separated). Try::Tiny is also still important because I don't think very
many people are writing code for only 5.14 yet.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About