[PD] declares in a new (sub)window

IOhannes m zmoelnig zmoelnig at iem.at
Thu Jan 5 16:14:33 CET 2017


On 2017-01-05 12:50, rolfm at dds.nl wrote:
> 
> however, the libs which are declared in the main patch (when loaded) are
> not available in this new window.

the only way this makes sense to me is if with "libs" you mean "paths"
(to abstractions).
traditional libraries (binary files containing one or more objects) will
be loaded into global namespace.

with the "libdir" loader, the distinction has (unfortunately) become blurry.

> is there a design reason for this?

the paths are searched as follows:
- searchpaths declared locally in the abstraction
- searchpaths declared in the containing abstraction
- searchpaths declared in the grandparent abstraction
- ...
- global searchpaths (preferences/startup-flags)


in your example you have two top-level patches: "the big main window"
and the newly created window.
since they are unrelated, they don't share any paths declared in any of
them.

this is of course by design, and is inspired by module loading in other
languages. (e.g. "import" in python)

fgmsdr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170105/d83b4cca/attachment.sig>


More information about the Pd-list mailing list