how to migrate to std.datetime
Jonathan M Davis
jmdavisProg at gmx.com
Sun May 8 19:01:06 PDT 2011
I would point out though that'll be a while before std.date and its related
functions actually go away, so any code which needs to be converted to
std.datetime definitely has time to be reworked however is appropriate.
Currently, they're scheduled for deprecation, which just results in the
compiler complaining at you in the cases where it can tell that you've used a
type or function which has been scheduled for deprecation. Later, they'll
actually be deprecated, so then -d will then be required when compiling if you
want to use them. _Then_ they will finally be removed. It has never been
officially decided how long each of those phases is supposed to be, so it
could be quite a while before std.date is actually gone. Walter definitely
wants to avoid breaking people's code when API changes are made, so it's going
to be a gradual process. My first guess would be that it'll be around 6 months
of "scheduled for deprecation" followed by 6 months of deprecated before
something actually is removed, but I really don't know. It could be longer.
Which reminds me that I need to bring up that topic again on the Phobos list.
We really should have a plan for how long each of the phases of deprecation
take.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list