[PD-dev] error missing in Pd 0.52

Roman Haefeli reduzent at gmail.com
Sat Apr 30 14:41:49 CEST 2022


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
> <reduzent at gmail.com>:
> > "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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20220430/5bfa1e2a/attachment.sig>


More information about the Pd-dev mailing list