-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-10-15 17:39, Charles Henry wrote:
Just create an object [$1], send it a bang, and it dumps out the 1st argument of the abstraction it's in.
this really only works for floats. if the user calls [myabs moses], [$1] will evaluate to [moses] which will not dump it's name when banged.
I use it this way for floats. I think you need to declare it differently for strings/symbols. How about [symbol $1]?
the generic solution for this is to use [list prepend $1] it will output a float when you pass it a float and a symbol when you pass it a symbol (to be precise, it will output a "list" message with one atom (float or symbol), which will be interpreted by most objects as the correct type)
fgamsdr IOhannes