Thread overview
[Issue 16202] Floating point types implicitly convert losing precision
Dec 17, 2022
Iain Buclaw
June 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16202

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from Steven Schveighoffer <schveiguy@yahoo.com> ---
As the spec defines the implicit conversion behavior, this is an enhancement.

--
June 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16202

--- Comment #2 from joeyemmons@yahoo.com ---
(In reply to Steven Schveighoffer from comment #1)
> As the spec defines the implicit conversion behavior, this is an enhancement.

Can you link where it says that? I was actually looking for it the other day and could not find where it explicitly defined this behavior. There is a section on implicit conversions, but it does not explicitly say this type of conversion is intended, seems to mostly talk about promotions.

--
June 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16202

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@yahoo.com

--- Comment #3 from Steven Schveighoffer <schveiguy@yahoo.com> ---
You are right, I can't find this explicitly stated anywhere.

However, there is nothing that says it's not allowed, and all current implementations allow it. If we were to suddenly say "oh, actually, you can't do that", it would break too much code.

So it's defacto part of the spec. This is still an enhancement.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=16202

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=16202

--- Comment #4 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19148

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--