[PD-dev] Clarification on linked lists of inlets and outlets

Miller Puckette msp at ucsd.edu
Wed Oct 29 02:39:57 CET 2014


Hi Sebastian,

You don't have to keep track of inlets, and the only reason tmo keep track
of outlets is to be able to send messages to them.  You're right that the
inlets and outlets are freed automatically when the object is freed so you
can just forget about them.

cheers
Miller

On Tue, Oct 28, 2014 at 03:49:52PM -0400, Seb Shader via Pd-dev wrote:
> Hi,
> 	Is it still necessary to store every inlet pointer after the first in the class data structure? it seems like multiple inlets are instead being handled as linked lists in the t_object and are automatically freed by pd_free, but the tutorial still says to allocate and deallocate them manually. Additionally I can't find a single instance of inlet_free being used in pd vanilla in a patchable object destructor.
> 
> 
> Thanks in advance
> 
> 
> 		-Sebastian

> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> http://lists.puredata.info/listinfo/pd-dev




More information about the Pd-dev mailing list