On Sat, 2022-04-30 at 07:53 +0200, IOhannes m zmölnig wrote:
> Am 29. April 2022 16:27:04 MESZ schrieb Roman Haefeli
> <[email protected]>:
> > "pd_error(0, ...)" should be
> > > equivalent and not break the external in old versions of Pd.
> > 
> > So, if the pointer to the object (x) is not available, I can simply
> > set
> > it to 0 (or NULL)? 
> 
> Yes.
> But please do take the opportunity and provide a valid pointer-to-
> the-object whenever possible, as this allows the user to track
> down,the source of the error.

In some cases, it's not feasible to provide the pointer to the object,
for instance in helper functions that don't have it specified as
argument. How many levels deep do you think it makes sense to extend
the function calls by x? 

Roman



Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Pd-dev mailing list
[email protected]
https://lists.puredata.info/listinfo/pd-dev

Reply via email to