[phobos] Deprecation of std.date

Jonathan M Davis jmdavisProg at gmx.com
Sun Jan 16 17:43:35 PST 2011


On Sunday 16 January 2011 11:48:36 Walter Bright wrote:
> Jonathan M Davis wrote:
> > Regardless, there will be one function - the version
> > std.file.lastModified which just takes the file name - which will break
> > the build of anyone using it, because the only thing changing in its
> > signature is its return type (SysTime instead of d_time), so there's no
> > way to overload it. Fortunately, however, I think that it's the only
> > function in that boat.
> 
> It needs to have a different name if its return type changes.

Okay, then. If that's how you'd prefer to do it, then I guess that that's what 
I'll do - though nothing immediately comes to mind as an alternate name for 
lastModified. I'll have to brainstorm a bit, I guess.

- Jonathan M Davis


More information about the phobos mailing list