[import] in 0.40 uses the same code as [declare], just has a different interface. Previous versions of [import] were quite a bit different.
That code in 0.40 is still a bit buggy, so file bug reports please :) .hc On Oct 31, 2007, at 5:05 PM, Roman Haefeli wrote: > 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? > > roman > > > > > > > > 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 >> _______________________________________________ >> [email protected] 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 > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list ------------------------------------------------------------------------ ---- Terrorism is not an enemy. It cannot be defeated. It's a tactic. It's about as sensible to say we declare war on night attacks and expect we're going to win that war. We're not going to win the war on terrorism. - retired U.S. Army general, William Odom _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
