Csound Csound-dev Csound-tekno Search About

while or until

Date2016-01-04 12:57
Fromjpff
Subjectwhile or until
I found an oddity/difference,.

With "while" the expansion is
< args:	#b3	iCnt	iNumberOfStrings
cingoto args:	#b3	__synthetic_301:

but with "until" we see
>= args:	#b3	iCnt	iNumberOfStrings
cggoto.0 args:	#b3	__synthetic_303:

Note the different goto opcodes.  I think "until" is correct (which is
what I wrote first). Is that correct?Not looked at the code yet

==John ffitch

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-01-04 13:09
FromRory Walsh
SubjectRe: while or until

Until is the one that behaves as expected for me.

On 4 Jan 2016 12:58 pm, "jpff" <jpff@codemist.co.uk> wrote:
I found an oddity/difference,.

With "while" the expansion is
< args: #b3     iCnt    iNumberOfStrings
cingoto args:   #b3     __synthetic_301:

but with "until" we see
>= args:        #b3     iCnt    iNumberOfStrings
cggoto.0 args:  #b3     __synthetic_303:

Note the different goto opcodes.  I think "until" is correct (which is
what I wrote first). Is that correct?Not looked at the code yet

==John ffitch

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-01-04 13:10
FromVictor Lazzarini
SubjectRe: while or until
I guess we should follow what if … then does, which is what until is doing, so yes I think 
you are right.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 4 Jan 2016, at 12:57, jpff  wrote:
> 
> I found an oddity/difference,.
> 
> With "while" the expansion is
> < args:	#b3	iCnt	iNumberOfStrings
> cingoto args:	#b3	__synthetic_301:
> 
> but with "until" we see
>> = args:	#b3	iCnt	iNumberOfStrings
> cggoto.0 args:	#b3	__synthetic_303:
> 
> Note the different goto opcodes.  I think "until" is correct (which is
> what I wrote first). Is that correct?Not looked at the code yet
> 
> ==John ffitch
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-01-04 13:21
Fromjpff
SubjectRe: while or until
Fixed in git -- braino by me


On Mon, 4 Jan 2016, Victor Lazzarini wrote:

> I guess we should follow what if … then does, which is what until is doing, so yes I think
> you are right.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 4 Jan 2016, at 12:57, jpff  wrote:
>>
>> I found an oddity/difference,.
>>
>> With "while" the expansion is
>> < args:	#b3	iCnt	iNumberOfStrings
>> cingoto args:	#b3	__synthetic_301:
>>
>> but with "until" we see
>>> = args:	#b3	iCnt	iNumberOfStrings
>> cggoto.0 args:	#b3	__synthetic_303:
>>
>> Note the different goto opcodes.  I think "until" is correct (which is
>> what I wrote first). Is that correct?Not looked at the code yet
>>
>> ==John ffitch
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here