Bug in D?!

Mr. Pib via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 11 16:39:55 PDT 2017


On Friday, 11 August 2017 at 23:34:04 UTC, Adam D. Ruppe wrote:
> On Friday, 11 August 2017 at 22:43:02 UTC, Mr. Pib wrote:
>> int and I should be able to append an int without having to 
>> worry about the value of the int.
>
> Appending an int to a string really ought to just be a type 
> mismatch error.
>
> We might be able to convince the leadership to do that too, 
> since that still fits with the C compatibility guidelines.

I'd prefer that since at least it wouldn't silently work and 
produce potentially catastrophic errors. But then that too is 
still breaking backwards compatibility(which I think is the 
plague of the 21st century).



More information about the Digitalmars-d-learn mailing list