[PD-dev] [declare -distro vanilla]

IOhannes m zmoelnig zmoelnig at iem.at
Wed Mar 18 09:06:57 CET 2009


Hans-Christoph Steiner wrote:
> 
> Then there could be also something like a 'maxmsp' distro for a 
> compatibility mode.  So I was thinking there could be a "#X declare 
> -distro vanilla" that each distro saves into every file.  It would be 
> safely ignored for Pd versions that didn't support the -distro flag.  

what would e.g. Pd-vanilla that supported a "-distro" flag do if it 
encountered a [declare -distro maxmsp]?

furthermore: i don't think that it is good design to have [declare] 
accept _any_ arguments and ignore them at will (e.g. if it decides to 
not support "-distro", then it could either explicitely ignore "-distro" 
or accept any argument and only use those that it knows about.


> This distro flag would then setup the canvas-local namespace with the 
> libraries as they are loaded for that distro.


in general, i think the idea tobe able to load named library-bundles is 
not such a bad idea.
i imagine it (right now; but this could be total nonsense) to load 
snippets of preference-files (that are stored somewhere in the path).

e.g.
<snip>
% cat ~/.pd/moko.prefs
path: ~/pd/mokolib
stdlib: rjdj

</snip>

and using [declare -loadbundle moko] would then add the path and lib to 
the canvas-local namespace.

gmsft
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20090318/8382a0f4/attachment.bin>


More information about the Pd-dev mailing list