Well, not exactly a bug report and more of a "this sucks, please change."
When you do one of:
print "blah "+$somecolor;
print "blah $somecolor";
it turns the
$somecolorreference into a call to the
toStringmethod of the
However, when you do one of:
it moans that
$somecolorisn't a string, rather than converting it.
I'd be nice if print could automatically stringify single parameters too.
I wrote this report back before I was familiar with the workings of the compiler. I could probably fix this myself now with a lot of headache and effort, but Brad will be able to fix it much more efficiently because the compiler is his baby.
It'd be nice to not have to do the ol' type conversion trick anymore. (