Zitiere Hans-Christoph Steiner hans@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