[PD] Difference between import and declare

Roman Haefeli reduzierer at yahoo.de
Wed Oct 31 22:05:47 CET 2007

afaik, [import] is part of pd-extended and is much older. [declare] is
part of pd since 0.40. 

altough [import] came first, i personally prefer [declare], because it's
part of pd. i don't know if it is possible with [import] as well, but
with [declare] you can specify paths either relative to pd or relative
to the patch, which is quite cool, because you can use it for loading
externals/paths from extra as well as directories, that are project
specific and not installed in <pd>/extra. also, when loading pathes with
[declare], they are only added to the patch itself. 

by the way:

- has anyone ever succeded in adding a path from the extra directory
with [declare -stdpath <dir>] on os x? on linux and window it works, if
i do [declare -stdpath ../extra/<dir>] (for whatever reason, i have to
prepend '../extra'). however, this didn't seem to work on osx. why? bug?

- personally, i find that [declare] is pretty badly documented. what
exactly means 'relative to pd' is not quite clear. for some reason, i am
totally missing declare-help.pd right now. i performed a cvs update, but
the file is still missing. am i doing something wrong here, or is it
really missing in cvs?


On Wed, 2007-10-31 at 16:06 -0400, Thomas O Fredericks wrote:
> What is the difference between import and declare?
> Pd 0.4 and up, will on of the two be deprecated?
> Tom
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

More information about the Pd-list mailing list