bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why should `break' and `continue' in functions not break loops runni


From: Oğuz
Subject: Re: Why should `break' and `continue' in functions not break loops running outside of the function?
Date: Sat, 30 Oct 2021 20:23:58 +0300

On Sat, Oct 30, 2021 at 6:55 PM Chet Ramey <chet.ramey@case.edu> wrote:
> You might be interested in
>
> https://www.austingroupbugs.net/view.php?id=842

The only argument against dynamic scoping there is that one might use
`break 1000' for exiting the outermost lexically enclosing loop and I
don't think anyone does that, you'd just count loops and specify the
exact number. Had it not been too late, I'd suggest `break 0' have
that effect (and `break -1' continue the outermost loop in progress,
and so on).

>
> There was a discussion on the austin-group mailing list back in 2016
> accompanying this defect report.

This I was interested in, but mail-archive doesn't have a copy, and
the austin group collaboration site doesn't show many of the replies
to that thread, including yours.

>
> Chet
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]