Re: safe addition of arguments to existing ugens

julian.rohrhuber-QYZGCWsIODmAF8UT6DzBU6xOck334EZe@public.gmane.org
Newsgroups gmane.comp.audio.supercollider.devel
Message-ID <[email protected]>
> 
> i thought of a very simple workaround for this -- in the Ctor code, a ugen can look at its own unit->mNumInputs and correctly handle edge cases. in the case of backward-compatible addition of arguments, this would mean that the new argument is optional and the plugin is smart enough to supply a default.

This would have to mean that it extends the array of values by some default like zero, so that the macros like ZXP() and IN() would never read uninitialised data?
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE2f9AlUAPrk+1WzZZhbzp9aOW3OYFAlq1WqgACgkQhbzp9aOW
3OYO0w/+LB+wHqCVz/BO3xB/Zs4WEhW3fhNAyvifHZaK2TwS6cXb/g5w82g3fbKX
Nuz3NDubqYhNQK3LFNC1ydD4AuczMupI3Tx/hrBZOwjAzruz+fZ63po+2UHbvIPo
rtiwGiX5L1WAluLqAlUTFaJd9u27olm2sy4BT33CBm0zDjStZPQmc4hZgMJGF5Su
jepicLMR66MJiA7eTd6ADlkPysuDU6qf80YjuB5t4n1GFiG03Heii7kjP3qKe8+M
DwYGID+2Ta6cWv6ehfaNuMYCTVbWFTALIcaS+wfLANtQRVx0u6KmzGLJykBkSpSc
vBAZLlbkNl1zz20K0NMrD5T7lf8QWXI4hIZt8r6GtUAODbygHWV3Kw+T3htbf/cB
P9skZhJuV/gPObBGjegYgpX7zcOPVOyf8MHw57doNTLRM7ZBGnPuTqRMo1h+x8Jy
9gS6ijp3SuPP2WgJo3uMOHFeCIxS/6AJdlz6Bo8mQK04vP1MHukI5y1oZfCJ/06K
gbAgKGhR7TII5HXVnShufBSdrPi4Z5suldrgrKos5k/4zosjw9hv2y7uBjWxPI8D
D0WhQOoo+ospBQgtETCWNRO4AGaqS8PbP1czxllJmShsBb2UadFjDb8tlBmvBigW
JSHEvwb/Y+Ml4Ob3Fs2WEuKmpgihAJgwJjfqBuAMfKchIQJDp1g=
=gwcv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.