On Feb 11, 2008, at 1:27 PM, Claude Heiland-Allen wrote: > (())_n wrote: >> I like *.lua because editors recognize them as lua and are able to >> parse the magic. > > You should be able to manually choose a highlight mode in any decent > editor, regardless of extension, and some you should be able to add a > default mode for extra extensions. > > It would be confusing if .pd files were called .txt, I think....
It would be. But .pd seems good enough, we get along fine without .pd_abstraction, .pd_patch, etc. And Max/MSP's mxj seems to work fine only using .java. pyext seems to work well using only .py. There is nothing stopping anyone from making a .dll on Windows with a setup function and sticking it in pd/extra. If someone tried to load it, Pd would make it's best effort, and the setup function won't create any inlets or outlets, so it would just sit there. The reason why Pd has so many extensions for binaries is to deal with binary incompatibility (i.e. an object compiled for PowerPC won't work on Intel). If you want to make support classes in a separate lua file, I would recommend a subdir, like support/myfile.lua. That would make things clear without having to create custom file extensions, which will break all sorts of other things, like automatic detection in editors, as well as creating an extra arcane detail unique to Pd that someone has to learn in order to use pdlua. .hc > >> What I was having problems with pdlua is that I have >> to restart PD whenever I change my script. > > Try the [luax scriptname argument1 argument2 a b 1 2] object. That > reloads the script on each object creation, but the scripts have to > have > a slightly different format. > > > Claude > -- > http://claudiusmaximus.goto10.org > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list ------------------------------------------------------------------------ ---- If you are not part of the solution, you are part of the problem. _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
