Bug 10439 – Deprecate float.min, double.min, real.min, and later remove them
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-21T12:31:00Z
Last change time
2016-03-22T11:35:17Z
Keywords
pull
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2013-06-21T12:31:43Z
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.