Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-10 Thread Jonathan Wilkes via Pd-list
> (a more advanced form would actually load (and loadbang) the meta-patch, so it can run some real code) There's also the possibility to load the meta-patch, but _always_ suppress loadbang. Then you'd have a rough equivalent to a c header file-- the lib author could basically declare things-- [s

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-10 Thread Jérôme Abel
i *think* that the best way to achieve this is to allow a library/framework to run some code when being setup. for me the obvious place would be the "-meta" file (Gem-meta.pd) which has become the de-facto standard to add meta-information to a library. It could be very nice and configurable

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-09 Thread IOhannes m zmoelnig
On 2016-05-08 23:21, Miller Puckette wrote: > Meanwhile a "real" fix > is needed... i think the sensible way would be, if a library loaded via declare could add paths (and load other libraries). e.g. with Gem, there are abstractions and a single external: ~/pd-externals/Gem/Gem-meta.pd ~/pd-exte

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-08 Thread Miller Puckette
OK... so as a fall-back I'll just fix it so that setting Pd compatibility to 0.46 makes declare fall back to the old behavior. Meanwhile a "real" fix is needed... cheers M On Sun, May 08, 2016 at 11:07:15PM +0200, Jérôme Abel wrote: > > if [import] can indeed be used > > In fact, it seems that

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-08 Thread Jérôme Abel
> if [import] can indeed be used In fact, it seems that [import] only deals with libraries ... not with abstractions folders. ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-lis

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-08 Thread IOhannes m zmölnig
On 05/08/2016 05:31 PM, Jonathan Wilkes via Pd-list wrote: > You write as if you aren't a time traveler. > [declare] has had this behavior for at least a decade. so you *are* a time traveler who is caught in a loop? fgmar IOhannes signature.asc Description: OpenPGP digital signature __

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-08 Thread Jonathan Wilkes via Pd-list
> So basically [declare] only was "allowed" in a toplevel patch. You write as if you aren't a time traveler. [declare] has had this behavior for at least a decade.  That's more than enough time for the ninjas to test and package it up to use in the manner described by the OP. What is the cost of

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-08 Thread Frank Barknecht
On Sun, May 08, 2016 at 12:09:04AM +, Jonathan Wilkes via Pd-list wrote: > Hi Jerome,If you're saying that your patches used to work and they now break, > do file a bug about it.  Others on the list have mentioned using > [declare] for this purpose-- I never have but it's a reasonable use cas

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-08 Thread Jérôme Abel
I don't regard this as a patch-level incompatibility Indeed. But the old behavior was seriously broken and I don't see any good way to provide it without causing trouble and confusion. I'm open to ideas... I understand. # USE CASE An abstraction [include] that you can put on all patche

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-07 Thread Miller Puckette
The trouble with that is that the old behavior depended on what order you created objects and saved/restored patches in - in other words, it was defective by design. I know it was possible to work around that, but I can't see any way to make it do the buggey thing it did and not be buggy. cheer

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-07 Thread Jonathan Wilkes via Pd-list
> But the old behavior was seriously broken and I don't see any good way to > provide it without causing trouble and confusion. Deprecate the old [declare] and name the new [declare] something else. -Jonathan On Saturday, May 7, 2016 8:40 PM, Miller Puckette wrote: I don't regard this

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-07 Thread Miller Puckette
I don't regard this as a patch-level incompatibility (I believe you can run all the patches -- only now you'll have to add 6 directories to Pd's search path). But it's a serious inconvenience for sure. But the old behavior was seriously broken and I don't see any good way to provide it without cau

Re: [PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-07 Thread Jonathan Wilkes via Pd-list
Hi Jerome,If you're saying that your patches used to work and they now break, do file a bug about it.  Others on the list have mentioned using [declare] for this purpose-- I never have but it's a reasonable use case. -Jonathan On Saturday, May 7, 2016 7:30 PM, Jérôme Abel wrote: Hi

[PD] Dynamic search paths and [declare] behavior in Pd.0.47

2016-05-07 Thread Jérôme Abel
Hi list, With the new [declare] behavior, I am a little confused (Pd.0.47). I've read that putting [declare] in abstractions was not the "right" way, but that what I've done. Shame. In La Malinette (malinette.info), it is very useful to have an abstraction named [include] which contains all