| I think I’ll continue to use the “==“ form, as the other (“=“) just looks wrong to my programmer eyes . . .
Robert
> On Dec 17, 2016, at 10:57 AM, Victor Lazzarini wrote:
>
> it's all about context. Inside a conditional the semantics are different. In C there is no way to tell what people want, but in Csound it is clear. An assignment is not allowed inside a conditional.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 17 Dec 2016, at 18:36, joachim heintz wrote:
>>
>> this is new for me, too — i am wondering when it was introduced.
>> certainly a good tolerance, although i try to explain to students that setting somthing on a value is not the same as asking about a value ...
>>
>> joachim
>>
>>
>>> On 17/12/16 08:35, Victor Lazzarini wrote:
>>> I should have noted in the book that ‘=‘ and ‘==‘ are equally accepted in conditionals.
>>> ========================
>>> Prof. 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 16 Dec 2016, at 22:21, C. R. Craig wrote:
>>>>
>>>> I’ve noticed an error in listing 5.7 on page 116:
>>>>
>>>> “if p6 = 0 then” should be “if p6 == 0 then”
>>>>
>>>> It would be nice to have the examples on github, but there are also advantages to typing them in manually . . . ;-)
>>>>
>>>> Robert
>>>>
>>>>> On Dec 14, 2016, at 2:52 PM, Victor Lazzarini wrote:
>>>>>
>>>>> I hope to put all of the book code in github, I just need to have a free day to do it. That'll hopefully help.
>>>>>
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>>
>>>>>> On 14 Dec 2016, at 20:14, C. R. Craig wrote:
>>>>>>
>>>>>> Never mind. Changing ksmps from 32 to 10 made it behave.
>>>>>>
>>>>>> Robert
>>>>>>
>>>>>>> On Dec 14, 2016, at 12:03 PM, C. R. Craig wrote:
>>>>>>>
>>>>>>> I’m working my way through this wonderful tome. In playing with one of the listings, it doesn’t seem to behave as expected. Listing 5.6 on page 115 may have been mangled in the editing process.
>>>>>>>
>>>>>>> In instrument 1, k1 is initialized to 1 but never used; the expression “if ktime%1 == 0 then” only triggers once, at the 8 second mark.
>>>>>>>
>>>>>>> Could someone clarify this example for me?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Robert
>>>>>>> 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
>>>>
>>>> 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
>
> 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 |