Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] Errors with arrays
vlz <[email protected]> Fri, 2 Jan 2026 23:02:17 +0000
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <[email protected]> |
Never mind, I found the issue and made a PR. Thanks for spotting this. > On 2 Jan 2026, at 22:24, Victor Lazzarini = <[email protected]> wrote: >=20 > yes, that=E2=80=99s a regression introduced in the struct arrays PR. = The issue is that the type > string is wrong, ":k[;c=E2=80=9D should be =E2=80=9Ck[]c=E2=80=9D, so = the opcode is not found. It seems to only > happen in expression analysis. >=20 > I did a bisect and found two possible commits where this regression = was introduced.=20 >=20 > Can you file a ticket? We=E2=80=99ll probably have to ask Hlolli about = it. > I=E2=80=99m doing what I can to track where this is hailing from, but = the code in that area > has changed a lot from what I knew. >=20 > best > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > Prof. Victor Lazzarini > Maynooth University > Ireland >=20 >=20 >=20 >=20 >=20 >=20 >> On 2 Jan 2026, at 21:15, Eduardo Moguillansky = <[email protected]> wrote: >>=20 >> *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. >> Hi, >>=20 >> With latest develop branch, this code generates an error for me >>=20 >> kA[] fillarray 1, 2, 3 >> kB[] fillarray 2, 4, 6 >> kC[] =3D (kA * kB) * 0.5 >>=20 >> error:=20 >>=20 >> error: opcode '##mul' for expression with arg types :k[;c not found, = line 17 >> SEMERR: opcode '##mul' for expression with arg types :k[;c not found, = line 17 >>=20 >> This works: >>=20 >> kA[] fillarray 1, 2, 3 >> kB[] fillarray 2, 4, 6 >> kC[] =3D (kA * kB) >> kC *=3D 0.5 >>=20 >> Any multi term expression throws the same error, actually: >>=20 >> for example, this fails too >> kC[] =3D kA * 2 + 0.5 >>=20 >>=20 >=20