[phobos] Deprecation of std.date
Walter Bright
walter at digitalmars.com
Sun Jan 16 18:16:56 PST 2011
Jonathan M Davis wrote:
> 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.
>
>
>
The reason is to not muck up existing user code, which I think is a
worthy goal.
More information about the phobos
mailing list