[PD-dev] why some structs are defined in m_obj.c? + what are vinlets and voutlets?

IOhannes m zmölnig zmoelnig at iem.at
Tue Nov 20 19:08:09 CET 2018


On 11/20/18 5:37 PM, Henri Augusto Bisognini wrote:
> why the _inlet and _outlet structures are defined in m_obj.c instead of m_pd.h ?

because that makes them "private" (as opposed to bein part of a
public-API (m_pd.h) or a semi-public API (the other header files).

> This way i can't access the structure members. 

exactly. that was the point of the exercise.

of course it is sometimes disappointing to not have direct access to the
data structures you (think you) need. but for the overall API stability
of Pd as a whole, private data structures are a very good thing. i wish,
more structs would be private.


gfmdsr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20181120/78c6a16f/attachment.sig>


More information about the Pd-dev mailing list