[Csnd-dev] arrays in the API

Victor Lazzarini <[email protected]>
Newsgroups gmane.comp.audio.csound.devel
Message-ID <[email protected]>
I am now wondering about the best way to give access to arrays in the API.

(1) Expose ARRAYDAT: at the moment the array data structure is transparent, so we can access all its members directly.

or

(2) Provide an interface: we can make the object opaque, providing access through API functions.

I can't decide. At the moment, STRINGDAT is opaque but PVSDATEXT is not. I am thinking of changing that one but have not decided yet.

Option 2 is safer but may be cumbersome for users.

Prof. Victor Lazzarini
Maynooth University
Ireland
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.