Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
That might be one solution when using [list trim], but this example actually shows a problem with the type system. Things are supposed to be strictly typed, atoms are either floats, symbols, or pointers. This is an example of an atom that is none of the above. That should not happen, its a bug somewhere.
I updated the example patch with a couple of more relevant examples:
The mystery type "symbol atom with numeric content" cannot be dealt with in Pd like this yet, because you cannot really input this mystery type in Pd: Every numeric value in an object box will be converted to a float atom, you have to generate a symbol-atom with numeric content through other means like makefilename.
That's why [select 1234] fails to detect a "1234"-symbol without selector. [select 1234] will generate a [select] object in "float mode". [select something] will generate a [select] in "symbol mode".
The float-[select] only has methods for float- and symbol-messages, but no methods for meta-messages like "set a b c", "set" or the "1234"-mystery-symbol. (It also has no methods for bang-message and "list a b c"-messages will generate an error message, but at least works.)
Similar things happen with [route 1234]: This route waits for a "float 1234" but in your example it gets a symbol-atom "1234" and correctly passes it along to the miss-outlet.
See attached example for this illustrated.
Ciao