Now we have assertion messages

Sean Kelly sean at f4.ca
Tue Jun 6 15:47:28 PDT 2006


Frank Benoit wrote:
> Now we have the messages for the assertions. And this can be used to
> help a D newbie very much with the error in this program:
> 
> /**/ import std.stdio;
> /**/ int main( char[][] args ){
> /**/   foreach( s; args ){
> /**/     writefln( a );
> /**/   }
> /**/ }
> 
> gives:
> Error: AssertError Failure m.d(6)
> 
> Feature request: Please add the message "missing return statement at
> function exit"

Great idea.


Sean



More information about the Digitalmars-d mailing list