[chuck-dev] casting an int to string (CVS)
gelfmuse at gmail.com
Mon Mar 2 18:56:43 EST 2009
I'm playing with the ChucK from CVS--especially with the string
operators. I don't see why we can't do this:
4 $ string => string s;
If we can do this:
4 + "" => string s;
The latter is valid while the first once gives me this error:
[test.ck]:line(3): invalid cast to 'string' from 'int'...
But if the implicit cast works is valid, it seems to me that an
explicit cast ought to be valid also.
More information about the chuck-dev