[phobos] [Fwd: "Unsigned-related bugs never occur in real code."]
Andrei Alexandrescu
andrei at erdani.com
Thu Jan 21 09:58:17 PST 2010
Sean Kelly wrote:
> Yeah, I was mostly responding to your earlier comment that casting
> didn't work for you. If you really wanted to cast it would be to
> ptrdiff_t anyway.
>
> I agree that there's a more fundamental problem though. Weren't we going
> to make implicit narrowing conversions an error? I know it isn't in the
> spirit of c, but c allows all sorts of horrible nonsense.
Implicit narrowing conversions are already disabled. But code involving
cast is explicit.
Andrei
More information about the phobos
mailing list