DMD 0.153 release
Walter Bright
newshound at digitalmars.com
Sun Apr 16 11:01:58 PDT 2006
Stewart Gordon wrote:
> Walter Bright wrote:
>> Because sometimes very large values are passed to these functions. I
>> have a test app that does that.
> But what is the practical use of being able to pass such huge arguments
> as the day or month?
Test programs often aren't practical; they test the limits. And the
limits should work without silent overflow.
> Still, people are no doubt already confused by the idea that you're
> supposed to pass a number of milliseconds since 1970 as the year, month,
> day, hour, minute, second or millisecond component when constructing a
> date/time.
The only thing confusing is it isn't documented.
> At least, these parameters should be long rather than
> d_time. Unless I'm missing something then there's nothing to lose, and
> some sanity in the code (and eventual documentation) to gain.
>
> Stewart.
More information about the Digitalmars-d-announce
mailing list