Re: [Csnd-dev] arrays in the API

vlz <[email protected]>
Newsgroups gmane.comp.audio.csound.devel
Message-ID <[email protected]>
Agreed. I have a design for this and I'll go ahead and implement.

Prof. Victor Lazzarini
Maynooth University

Ireland

On 9 Aug 2024, at 18:49, Rory Walsh <[email protected]> wrote:


I'd be leaning towards making it opaque and doing the same for PVSDATEXT.

On Fri, 9 Aug 2024 at 14:56, Victor Lazzarini <[email protected] > wrote:

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.