I also really like parentdollarzero from iemlib. But as for dollarg, it would be great if it could get the arguments of a parent further up the parent hierarchy. Something like $@2 (or $@@... whatever) that would go up two parents, get all the arguments AND the dollar zero. That would then solve lots of state saving pains.
Tom
On 5/1/07, zmoelnig@iem.at zmoelnig@iem.at wrote:
Quoting Thomas Ouellet Fredericks tof@danslchamp.org:
There is also the overlooked very powerful [dollarg] from iemlib that converts all your arguments into a list. I even made an abstraction that can parse arguments by name like in Jitter. For example, [dollars @currency canadian @exchange_rate 1.87 @output km] could also be written [dollars @output km @exchange_rate 1.87 @currency canadian]
Anyway, dollarg rocks.
and just to push this a bit: some months ago i have submitted a patch to pd (in the sf patchtracker), that introduces to new dollar-arguments: $@ and $#. while $# is probably not so interesting (now that we have [list length]), $@ is very similar to iemlib's [dollarg] but can do even more (e.g. full list expansion in a message)
if a lot of people find this useful, and at least some of them go throught the patch and find any bugs, probably it would be accepted into vanilla pd one day. (i think it is already in pd-extended)
fmas.dr IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list