D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10439 - Deprecate float.min, double.min, real.min, and later remove them
Summary: Deprecate float.min, double.min, real.min, and later remove them
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2013-06-21 12:31 UTC by bearophile_hugs
Modified: 2016-03-22 11:35 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2013-06-21 12:31:43 UTC
void main() {
    auto x = double.min;
}


Compiling it normally or compiling it with -dw it prints nothing. Compiling it with -wi gives (dmd 2.064alpha):

temp.d(2): Warning: min property is deprecated, use min_normal instead

I suggest to make them really deprecated (so that code compiles only with -d or -dw), and later to turn them into an error.
Comment 3 Kenji Hara 2014-10-09 15:37:10 UTC
Make it an error:
https://github.com/D-Programming-Language/dmd/pull/4057
Comment 4 github-bugzilla 2014-10-10 00:42:27 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b719b6f88819f3ba542b822e1b083aef974494c9
fix Issue 10439 - Deprecate float.min, double.min, real.min

https://github.com/D-Programming-Language/dmd/commit/0e47db1fd51d81958c9e57714707fc8b3495e2b9
Merge pull request #4057 from 9rnsr/fix10439

Issue 10439 - Deprecate float.min, double.min, real.min
Comment 5 Kenji Hara 2014-10-10 03:20:42 UTC
Reopen until it's actually removed.
Comment 7 thomas.bockman 2016-03-22 11:35:17 UTC
These have finally been removed by this PR, which was merged yesterday:
    https://github.com/D-Programming-Language/dmd/pull/5555