On Wed, 31 Aug 2011, Jonathan Wilkes wrote:
Keep in mind that [list implode] must be smart enough to output the float atom "12" given the input "49 50". If it gives you "symbol 12" then your back to the [makefilename] madness from my original vanilla solution.
It's not that simple. People might not want always a cast to float, because then, it might destroy part of the information in the symbol.
see : http://lists.puredata.info/pipermail/pd-list/2006-09/042419.html
that's how [gf/s2l] is different : it outputs only symbols. I think I could make it an option, but I wouldn't know how to call it. E.g. :
[gf/s2l /, docast] [gf/s2l /, convert] [gf/s2l /, atof]
where the name after the comma is an attribute method taking one optional float arg defaulting to 1, just like all other flags in GF, defined like this :
\attr bool docast;
void cast_if_wanted (t_atom *foo) {if (docast) ........;}
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC