<div dir="ltr">Well, I think the best behavior is what Gem does. When one does [declare -lib Gem], the path is automatically added to search paths, so one can access all abstractions and help files without doing [declare -path Gem]. I know that it is still recommended to do [libname/libabstraction] when using abstraction libraries like [list-abs], instead of doing [declare -path list-abs], for clarity purposes. <div><br></div><div>But still, at least I think that 'declare' works in plain english like: [declare] == 'i will be using this library from now on, so load it entirely'. Of course the problem is that some libs are made of abstractions only, some of separated objects, and others are single binaries. How libs are made depends on the lib maintainer, not on pd, of course. So, if one does [declare -lib list-abs], indeed nothing happens, like [declare -lib hid]. </div><div><br></div><div>Perhaps telling the user how to load the library could (also) be deken's job after downloading a library: a simple post to console to tell the user how to load the library based on the package contents... </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 7, 2019 at 3:11 PM Christof Ressi <<a href="mailto:christof.ressi@gmx.at" target="_blank">christof.ressi@gmx.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey,<br>
<br>
> but only if the external is within a given serach path on PD startup.<br>
<br>
Which is also true for [declare -lib] - it can't magically find libraries without having the correct search paths. Note that for every external "foo" the loader also tries "foo/foo", so [declare -path hid] is not necessary, you can just do [hid]. I don't see any purpose for [declare -lib hid] except maybe for documentation (but then I would just write a comment).<br>
<br>
> > i guess Peter was saying that he only loads libraries/externals<br>
> explicitly when they are needed.<br>
<br>
I don't get it. When I do [hid] - without [declare -lib] -, it will be exactly loaded when needed.<br>
<br>
Christof<br>
<br>
> Gesendet: Montag, 07. Oktober 2019 um 14:50 Uhr<br>
> Von: "oliver" <<a href="mailto:oliver@klingt.org" target="_blank">oliver@klingt.org</a>><br>
> An: Pd-list <<a href="mailto:pd-list@mail.iem.at" target="_blank">pd-list@mail.iem.at</a>><br>
> Betreff: Re: [PD] declare not posting library loading message while object creation does?<br>
><br>
> Christof Ressi wrote:<br>
> >> And this was sarcasm too.<br>
> ><br>
> > damn, my sarcasm-O-meter failed miserably...<br>
> ><br>
> >> I was using [declare -lib hid] because this is how I load libraries in general.<br>
> ><br>
> > "-lib" is only needed for multi-object-per-binary libraries, e.g. zexy and iemlib. [declare -lib hid] doesn't do anything useful, the external will be loaded anyway when you create it the first time...<br>
> ><br>
><br>
> but only if the external is within a given serach path on PD startup.<br>
><br>
> i guess Peter was saying that he only loads libraries/externals<br>
> explicitly when they are needed. (which is a good practice for testing<br>
> purposes or prior to posting/sharing patches)<br>
><br>
> in the case of [hid] (or [hidin] on windows) it would be [declare -path<br>
> hid] though, since (as christof correctly said) it's a single external<br>
> rather than a multiobject library (like ZEXY, IEMLIB, IEMMATRIX, GEM).<br>
><br>
> best<br>
><br>
> oliver<br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
><br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><a href="http://fdch.github.io" target="_blank">fdch.github.io</a></div></div></div></div>