[PD-dev] $0 in messages, was: multiple $arg-expansion

Mathieu Bouchard matju at artengine.ca
Sat Jan 21 09:54:10 CET 2006


On Sun, 15 Jan 2006, IOhannes m zmoelnig wrote:
> Hans-Christoph Steiner wrote:
> > Stacked args would complicate things more than its worth.  I think it  is
> > getting away from the graphical nature of Pd programming and I can't  think
> > of any parallel structure in any language that uses $ variables.   
> ähm, bash? like in:
> ~$ i=3; j=4; echo $[i+2] $[i*$[j+1]]

also Tcl is sort of like that but inside out:

  set i 3; set j 4; puts "[expr $i+2] [expr $i*($j+1)]"

but then some lisp-weirdos define Tcl procs for + * etc, resulting in:

  set i 3; set j 4; puts "[+ $i 2] [* $i [+ $j 1]]"

i think i recall jMax2 had it like:

  [var i: 3]
  [var j: 4]

  [list ($i+2) ($i*($j+1)) }
   |
  [print]

and similarly with $1 $2 instead of $i $j

(but jMax4 had a different sin-tax that I don't even recall.)

 _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada




More information about the Pd-dev mailing list