On Dec 23, 2008, at 12:55 AM, IOhannes m zmoelnig wrote: > Miller Puckette wrote: >> Second, and this just occurred to me, I think it would be smart to >> separate >> the u_main.tk cide into several smaller files. They could simply be >> concatenated by the makefile. This way people could work on >> different >> parts of it with much less chance of their work colliding. I >> should have >> thought of this simple strategy years ago, hmm. > > hmm, wouldn't it be even nicer to merge the separate files at runtime? > just load all the files in a directory (and use ##_ prefixes > (01_ .. 99_) to enforce a certain order) > > i always found it somewhat awkward that we have to use "make" to > "generate" a script from a script.
Tcl has a mechanism for this built-in, as do most scripting langauges. In Tcl, these are called "packages". You can make Tcl packages quite easily, and then load them like any other Tcl package. .hc > > fmgadrs > IOhannes > _______________________________________________ > Pd-dev mailing list > [email protected] > http://lists.puredata.info/listinfo/pd-dev ------------------------------------------------------------------------ ---- I spent 33 years and four months in active military service and during that period I spent most of my time as a high class muscle man for Big Business, for Wall Street and the bankers. - General Smedley Butler _______________________________________________ Pd-dev mailing list [email protected] http://lists.puredata.info/listinfo/pd-dev
