[PD] Best practices for [declare]

Roman Haefeli reduzent at gmail.com
Thu Feb 25 11:22:25 CET 2021


On Thu, 2021-02-25 at 11:13 +0100, Peter P. wrote:
> * 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?
> Perhaps for use with "nested" code, use of abstractions, possibly in
> other abstractions etc.

Then Ctrl-X, Ctrl-V doesn't help.

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-list/attachments/20210225/6fd122da/attachment-0001.sig>


More information about the Pd-list mailing list