[Issue 12846] New: Phobos git HEAD: std.datetime spewing out tons of deprecation messages

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jun 3 07:20:11 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12846

          Issue ID: 12846
           Summary: Phobos git HEAD: std.datetime spewing out tons of
                    deprecation messages
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: hsteoh at quickfur.ath.cx

Updated dmd/druntime/phobos to git HEAD today, and got a whole bunch of
deprecation messages from std.datetime:

-----
/usr/src/d/phobos/std/datetime.d(27194): Deprecation: function
core.time.Duration.hours is deprecated - Please use getOnly instead. Too many
people were confusing hours with total!"hours"().
/usr/src/d/phobos/std/datetime.d(27194): Deprecation: function
core.time.Duration.minutes is deprecated - Please use getOnly instead. Too many
people were confusing minutes with total!"minutes"().
/usr/src/d/phobos/std/datetime.d(27196): Deprecation: function
core.time.Duration.hours is deprecated - Please use getOnly instead. Too many
people were confusing hours with total!"hours"().
/usr/src/d/phobos/std/datetime.d(27196): Deprecation: function
core.time.Duration.minutes is deprecated - Please use getOnly instead. Too many
people were confusing minutes with total!"minutes"().
/usr/src/d/phobos/std/datetime.d(27194): Deprecation: function
core.time.Duration.hours is deprecated - Please use getOnly instead. Too many
people were confusing hours with total!"hours"().
/usr/src/d/phobos/std/datetime.d(27194): Deprecation: function
core.time.Duration.minutes is deprecated - Please use getOnly instead. Too many
people were confusing minutes with total!"minutes"().
/usr/src/d/phobos/std/datetime.d(27196): Deprecation: function
core.time.Duration.hours is deprecated - Please use getOnly instead. Too many
people were confusing hours with total!"hours"().
/usr/src/d/phobos/std/datetime.d(27196): Deprecation: function
core.time.Duration.minutes is deprecated - Please use getOnly instead. Too many
people were confusing minutes with total!"minutes"().
-----

This probably should be fixed in std.datetime. :)

--


More information about the Digitalmars-d-bugs mailing list