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

Re: [perl #56150] return return

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
June 20, 2008 11:35
Subject:
Re: [perl #56150] return return
Message ID:
20080620183510.GA30682@klangraum.plasmasturm.org
* Yitzchak Scott-Thoennes <sthoenna@efn.org> [2008-06-20 20:00]:
> On Fri, June 20, 2008 10:54 am, David Nicol wrote:
> > alternately, restyle it as a wishlist item, the wish being
> > for general "code unreachable" warnings.
> 
> which return(return) would trigger but return($x || return)
> would not

Which would be as it would have should been[1], because in those
cases where $x is true, the outer `return` will indeed be reached.

[1]: Tip of the hat to a certain crazy Aussie’s keynote.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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