[PD-dev] how math objects respond to a bang

zmoelnig at iem.at zmoelnig at iem.at
Tue Feb 7 22:32:21 CET 2006


Zitiere Hans-Christoph Steiner <hans at eds.org>:

> 
> So I am just going thru the x_arithmetic.c math classes, and I found 
> that while most of them do respond to a bang, about 1/3 of them have no
> 
> method for bang.  I would like to add a bang method to all these.  I 
> can't see any problem with doing this, anyone else?  The new bang 
> methods would act just like the other math object bang methods: the 
> would output the last result.
> 
> These objects have a bang method:
> 
> + - * / pow max min == != > < >= <= & && | || << >> % mod div
> 
> These do not:
> 
> clip sin cos tan atan atan2 sqrt log exp abs


well the difference is, that [+],... are binops while [sin],... are unary
operations.


the [bang(-method for binops is there for things like
|
[t b f]
|     |
[+    ]
|


since this is not needed it is not there for unops.

mfg.asdr.
IOhannes




More information about the Pd-dev mailing list