New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple assignments not working in CS7 #1801
Comments
I was not aware of this syntax in CS6. Is this commonly used? I'm wondering about the long-term language design implications of this and whether it'll cause issues in the future. Would love to hear @jpffitch and @vlazzarini 's thoughts on this. |
I wasn't aware either. Looks like tuples to me but I never knew we supported them in the old parser. |
just to note that it is documented in the manual:
https://csound.com/docs/manual/assign.html
…On 01/01/2024 18:09, vlazzarini wrote:
I wasn't aware either. Looks like tuples to me but I never knew we
supported them in the old parser.
—
Reply to this email directly, view it on GitHub
<#1801 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQYHKWZBRQXVX24PKXE5STYMLUTJAVCNFSM6AAAAABBI7J2H2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTGQYDIMBRHE>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
well then, looks like we need to keep this in the new parser. This goes back to 2010. |
i just checked whether multiple assignments work for init rather than
for equal.
good news that it already works also in CS7, for instance:
instr 1
ia,ib init 1,2
print(ia,ib)
endin
not sure if this helps to implement it for `ia,ib = 1,2`, too.
…On 02/01/2024 10:44, vlazzarini wrote:
well then, looks like we need to keep this in the new parser. This goes
back to 2010.
—
Reply to this email directly, view it on GitHub
<#1801 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQYHKTKBHEESVB642SV2YDYMPJIPAVCNFSM6AAAAABBI7J2H2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTHAYDAMJXGI>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I looked more carefilly and multiole assinment iin cs6 is just the usual call of an opcode. There is no fuss about diskin2 have multiple outputs and more than 1 input. so there is issue in =or init,. The syntax is just like elsewhere
|
this works in CS6 but not in CS7 (develop):
iMin,iMax = 5,10
not sure it is already expected to work but want to mention it for compatibility.
The text was updated successfully, but these errors were encountered: