chuck icon indicating copy to clipboard operation
chuck copied to clipboard

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

Open gewang opened this issue 6 months ago • 0 comments

"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)

gewang avatar Jan 11 '24 23:01 gewang