[PD] Best practices for [declare]

Winfried Ritsch ritsch at iem.at
Thu Feb 25 11:26:49 CET 2021


Am Donnerstag, 25. Februar 2021, 11:13:28 CET schrieb Peter P.:
> * Roman Haefeli <reduzent at gmail.com> [2021-02-25 11:04]:
> > On Thu, 2021-02-25 at 10:56 +0100, Winfried Ritsch wrote:
> > > My 2 Cents:
> > > 
> > > There is one pitfall which should be mentioned, since it happened to
> > > me and
> > > 
> > > also others I wanted to teach structured Pd programming:
> > >   "The order of -path statements matters"
> > > 
> > > Use case:
> > > If I want to look in specific directory first for finding objects and
> > > libraries,
> > > so I can handle local overwrites or so and distribute the -path
> > > statements in
> > > many declare objects, then I do not know from looking at the code
> > > which path
> > > is used first, unless I create them in the order I want (Ctrl-X,
> > > Ctrl-V on each
> > > object), which is an undocumented behaviour which might change in
> > > future.
> > 
> > I'm not absolutely sure if I understand you correctly, but why don't
> > you use only one [declare] object?
> 
yes I do (lately)... as a hint for the best pratice discussion.

> Perhaps for use with "nested" code, use of abstractions, possibly in
> other abstractions etc.
> 
yes and it would be better readable than a long list of "-path ..."s with 
linebreaks ...

> 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list


-- 
- ao.Univ.Prof. DI Winfried Ritsch 
- ritsch at iem.at - http://iem.at/ritsch
- Institut fuer Elektronische Musik und Akustik
- University of Music and Dramatic Art Graz
- Tel. ++43-316-389-3510 (3170) Fax ++43-316-389-3171 






More information about the Pd-list mailing list