[chuck-dev] casting an int to string (CVS)
mike clemow
gelfmuse at gmail.com
Mon Mar 2 18:56:43 EST 2009
Hello,
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.
Cheers,
Mike
--
http://michaelclemow.com
http://semiotech.org
More information about the chuck-dev
mailing list