Real implicitly converts to float?
Tofu Ninja via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 24 13:10:16 PDT 2016
On Friday, 24 June 2016 at 08:52:48 UTC, Ola Fosheim Grøstad
wrote:
> This is so wrong. _especially_ when you have parameter
> overloading/templates. It means that you accidentally can trash
> a computation by getting the wrong function. That is not
> type-safe in my book.
>
> Jonathan's max-value example is a good one. The distinction
> between infinity and a large actual value is an important one.
I am glad I was not the only one who thought that sounded a
little crazy... I thought D was supposed to be type safe. I think
I will make a bug report and see where that goes.
More information about the Digitalmars-d-learn
mailing list