toChars Bug?

John Colvin john.loughran.colvin at gmail.com
Tue Dec 12 15:47:30 UTC 2017


On Tuesday, 12 December 2017 at 15:19:48 UTC, ketmar wrote:
> p.s.: but no, i am wrong.
>
> 	foo(-42);
>
> this is perfectly valid for `foo (uint n)`, as D converts 
> negative ints to uints without any warnings.
>
> so no, overloads won't fit.

hmm yes, it seems it is not possible.


More information about the Digitalmars-d mailing list