[chuck-users] Flush ChucK IO
signal.automatique at gmail.com
Fri May 21 12:16:30 EDT 2010
> Thanks, if this works that’s fine with me a ftos or .toString() would be
> even better of course ;)
> Well, all objects have .toString(), but in ChucK primitives aren't objects
so they lack member-functions.
I think a cast should be added because plus-chucking a float to a string
already forms a implicit cast so a explicit one should be fine as well, I
feel. That would be coherent with ChucK being meant to be very readable; a
explicit cast may well be a part of the coder trying to express his
Remarkably the Std does supply a tool to go from a string to a number, but
not the other way around.
I say we overload "$" as the most simple and coherent solution.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the chuck-users