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

Victor Lazzarini <[email protected]> Sat, 27 Sep 2025 07:23:16 +0000
Newsgroups gmane.comp.audio.csound.devel
Message-ID <[email protected]>
To me too, but the trouble is who is going to write the code? I like all the suggestions etc but we're quite limited in what we can do at the moment.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 27 Sep 2025, at 01:28, Steven Yi <[email protected]> wrote:
> 
> *Warning*
> 
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> 
> 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"?