Re: [Csnd-dev] should we have "break" inside a for-loop?

Steven Yi <[email protected]> Fri, 26 Sep 2025 20:28:03 -0400
Newsgroups gmane.comp.audio.csound.devel
Message-ID <CANtcCs7usqrAoz_d93XYRfAAXG_LPrkC17e7LGTJwZJ7gvLUOQ@mail.gmail.com>
Seems reasonable to me.

On Fri, Sep 26, 2025 at 8:01 PM joachim heintz <[email protected]> wrote:
>
> i think this is the classical case to leave a loop like
> instr 1
>    for i in [1 ... 10] do
>      if i == 3 then
>        break
>      endif
>    od
> endin
>
> currently we have igoto and label for this case --- possible but a bit
> awkward.
>
> would it be good to implement "break"?