develooper Front page | perl.perl5.porters | Postings from May 2012

Re: [perl #108286] continue, else and elsif (Wishlist: Overridable keywords)

Thread Previous | Thread Next
From:
Eric Brine
Date:
May 13, 2012 13:41
Subject:
Re: [perl #108286] continue, else and elsif (Wishlist: Overridable keywords)
Message ID:
CALJW-qHX4464788BngNqEnYHumpXW=3VExj_maB-uoeEq2=KkQ@mail.gmail.com
On Sun, May 13, 2012 at 3:43 PM, Father Chrysostomos via RT <
perlbug-followup@perl.org> wrote:

> But how does BLOCK continue BLOCK fit into that scheme?
>

It makes sense that the same should apply to ‘continue’.
>

Like you said, it's "BLOCK continue BLOCK". "continue BLOCK" is not a thing
onto its own. "continue" is only special within some loop definitions.

But ‘continue’ after a plain block doesn’t begin with a keyword.  So
>
should ‘continue{’ be considered part of block syntax in that case,
> ignoring any overrides?
>

So you can't override bare loops. It's not like they can be overridden
using the other mechanisms.

- Eric


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