"Try it now"

Steven Schveighoffer schveiguy at yahoo.com
Thu Apr 14 10:44:26 PDT 2011


On Thu, 14 Apr 2011 13:38:11 -0400, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> Actually, std.datetime doesn't use assert much. It mostly uses a version  
> of
> assertPred which it has as a private function. Also, I've been rewriting  
> the
> unit tests, and that will result in far fewer actual lines with assert or
> _assertPred thanks to more looping and whatnot. It does increase the  
> need for
> printing out the actual results from an assertion though (which  
> _assertPred
> does on failure). And what you're asking for here is at least related to  
> the
> requested improvements to assert which resulted in assertPred being  
> scrapped.

I forgot that assert isn't actually used much in std.datetime!

-Steve


More information about the Digitalmars-d mailing list