Heh... no, you could still do that if you want. You just won't be able to
use "for" in the C-style anymore, because the C-style for loop is going to
become "loop". "for" is going to explicitly mean foreach.

In other words, your example could also be written

loop {
    ...
    last if CONDITION;
}


----- Original Message -----
From: "Ron Newman" <[EMAIL PROTECTED]>
To: "Matthew Brooks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, January 20, 2002 1:53 PM
Subject: Re: [Boston.pm] do { discussion() } while $interest;


> At 3:34 AM -0500 1/20/2002, Matthew Brooks wrote:
>
> >I'm a bit sad about seeing "do {} while CONDITION" getting the old boot
in
> >Perl6. I've actually come to like it. But thankfully we won't have to use
> >(and break out of) that atrocious infinate "for (;;){}" loop (which I've
> >always thought of as a cheesy hack).
>
> I always used
>
>    while (1) {
>      ...
>      last if (CONDITION);
>      ...
>    }
>
> which is a C idiom.  Is this going away in Perl 6?
>
> --
> Ron Newman [EMAIL PROTECTED]
> http://www2.thecia.net/users/rnewman/
>
>
>

Reply via email to