DMD 0.153 release

Walter Bright newshound at digitalmars.com
Fri Apr 14 23:36:47 PDT 2006


Stewart Gordon wrote:
> Walter Bright wrote:
>> Bug fixes.
>>
>> http://www.digitalmars.com/d/changelog.html
> 
> "Changed parameter types for std.date.MakeDate and std.date.MakeTime so 
> they won't overflow."
> 
> What you've done here makes no sense to me.  Why is abusing the d_time 
> type necessary to prevent an overflow?  I.e. how does any of the following:
> 
> - making the parameters long, considering that d_time is an alias of 
> long anyway
> - casting the ints to longs within the function
> - making TicksPerHour et al long
> 
> still lead to an overflow?

Because sometimes very large values are passed to these functions. I 
have a test app that does that.


> Also, why are none of the Make* and *FromTime functions documented?

Sloth on my part.



More information about the Digitalmars-d-announce mailing list