Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] default arguments for UDOs in new syntax
Victor Lazzarini <[email protected]>
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <[email protected]> |
I’ve made a PR fixing this. Optional types as per classic-style UDO are now allowed as types. https://github.com/csound/csound/pull/2214 ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 29 Jul 2025, at 19:35, Victor Lazzarini <[email protected]> wrote: > > Defaults arguments are not implemented as far as I can see. > This works - but I think it is a fluke. > > opcode myop(var1:i,var2:p):void > print var1, var2 > endop > > Steven should be able to clarify. I’ll have a look at the code > > ======================== > Prof. Victor Lazzarini > Maynooth University > Ireland > >> On 29 Jul 2025, at 19:14, joachim heintz <[email protected]> wrote: >> >> *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. >> >> in the old UDO syntax, we had opj etc for some default values of arguments. >> is there something in the new UDO syntax? >> i tried >> opcode test(arg1:i=1,arg2:i=13):void >> but this did not work. >