Csound Csound-dev Csound-tekno Search About

[Cs-dev] If-then's fixed

Date2009-04-23 07:10
FromSteven Yi
Subject[Cs-dev] If-then's fixed
Hi All,

After a few hours of looking at it, I found out that what broke the
code was that during reformatting of the code, an extra set of {} was
introduced and they didn't line up with the old ones.  Because of
this, code that was only supposed to happen after a while loop
completed ended up getting included at the end of every while loop
iteration, including creating the end synthetic label of an
if-then-elseif-else ladder over and over, as well as causing an
infinite loop in test18.csd.  After redoing the {}'s, all seems
corrected.  Code is now commited.

On to other bugs now! :D

steven

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-04-23 08:21
Fromvictor
SubjectRe: [Cs-dev] If-then's fixed
Excellent. Did you look at labels? They seemed to break
it (even without ifs).

Victor
----- Original Message ----- 
From: "Steven Yi" 
To: "Developer discussions" 
Sent: Thursday, April 23, 2009 7:10 AM
Subject: [Cs-dev] If-then's fixed


> Hi All,
>
> After a few hours of looking at it, I found out that what broke the
> code was that during reformatting of the code, an extra set of {} was
> introduced and they didn't line up with the old ones.  Because of
> this, code that was only supposed to happen after a while loop
> completed ended up getting included at the end of every while loop
> iteration, including creating the end synthetic label of an
> if-then-elseif-else ladder over and over, as well as causing an
> infinite loop in test18.csd.  After redoing the {}'s, all seems
> corrected.  Code is now commited.
>
> On to other bugs now! :D
>
> steven
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-04-23 08:38
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] If-then's fixed
> Excellent. Did you look at labels? They seemed to break
> it (even without ifs).
>
>

I tried a label (without any gotos) and it caused no problems

Do you have a short example?
==John


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-04-23 16:53
Fromvictor
SubjectRe: [Cs-dev] If-then's fixed
It seems to be fixed now.

Victor
----- Original Message ----- 
From: 
To: "Developer discussions" 
Sent: Thursday, April 23, 2009 8:38 AM
Subject: Re: [Cs-dev] If-then's fixed


>> Excellent. Did you look at labels? They seemed to break
>> it (even without ifs).
>>
>>
>
> I tried a label (without any gotos) and it caused no problems
>
> Do you have a short example?
> ==John
>
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net