develooper Front page | perl.perl5.porters | Postings from March 2008

Re: local $@ has an unwanted side effect

Thread Previous | Thread Next
From:
Mark J. Reed
Date:
March 23, 2008 03:02
Subject:
Re: local $@ has an unwanted side effect
Message ID:
f60fe000803222228h67203e54gacac528ac34b4fbb@mail.gmail.com
On Sat, Mar 22, 2008 at 8:00 PM, Aristotle Pagaltzis <pagaltzis@gmx.de> wrote:
>  What does Perl 6 do in that respect? Maybe semantics could be
>  borrowed from there?

In which respect?

TTBOMK, both eval's role as pseudo-"try" and the $@ variable are gone
in Perl6, which has a real "try" instead.  If the eval'ed code fails,
the eval itself just fails right along with it; so there's no need for
a split along the lines of $! vs $@.

-- 
Mark J. Reed <markjreed@mail.com>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About