ccrma / chuck

ChucK Music Programming Language
http://chuck.stanford.edu/
GNU General Public License v2.0
799 stars 127 forks source link

casting `Object` to `string` yields unexpected values? #423

Open gewang opened 7 months ago

gewang commented 7 months ago
"a".toString() => Object o; o $ string => string foo;
<<< foo >>>;
<<< o.toString() >>>;

"foo" => string x;
<<< x >>>;

prints somewhat unexpected values:

"string:6000024a5500 (refcount=1)" :(string)
"a" :(string)
"foo" :(string)