[Csnd-dev] Errors with arrays

Eduardo Moguillansky <[email protected]> Fri, 2 Jan 2026 22:15:20 +0100
Newsgroups gmane.comp.audio.csound.devel
Message-ID <CAHFFssKR=gFOwHXGSdjc6NFBYF-z9ZFTRuzUU+WOfjFHZs8_3A@mail.gmail.com>
--0000000000008fda5706476e3551
Content-Type: text/plain; charset="UTF-8"

Hi,

With latest develop branch, this code generates an error for me

kA[] fillarray 1, 2, 3
kB[] fillarray 2, 4, 6
kC[] = (kA * kB) * 0.5

error:

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

This works:

kA[] fillarray 1, 2, 3
kB[] fillarray 2, 4, 6
kC[] = (kA * kB)
kC *= 0.5

Any multi term expression throws the same error, actually:

for example, this fails too
kC[] = kA * 2 + 0.5

--0000000000008fda5706476e3551
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>With latest develop bran=
ch, this code generates an error for me</div><div><br></div><div>	kA[] fill=
array 1, 2, 3<br>	kB[] fillarray 2, 4, 6<br>	kC[] =3D (kA * kB) * 0.5<br></=
div><div><br></div><div>error: <br></div><div><br></div><div>error: opcode =
&#39;##mul&#39; for expression with arg types :k[;c not found, line 17<br>S=
EMERR: opcode &#39;##mul&#39; for expression with arg types :k[;c not found=
, line 17</div><div><br></div><div>This works:</div><div><br></div><div><di=
v>	kA[] fillarray 1, 2, 3<br>	kB[] fillarray 2, 4, 6<br>	kC[] =3D (kA * kB)=
</div><div>kC *=3D 0.5<br></div><div><br></div><div>Any multi term expressi=
on throws the same error, actually:</div><div><br></div><div>for example, t=
his fails too</div><div>kC[] =3D kA * 2 + 0.5</div><div><br></div><br></div=
></div>

--0000000000008fda5706476e3551--