Now we have assertion messages
Brad Roberts
braddr at puremagic.com
Tue Jun 6 16:28:33 PDT 2006
On Tue, 6 Jun 2006, Sean Kelly wrote:
> 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.
Funny you should say that.. I started going through the front end last
night looking at those.. I'll attach a patch to a bug tonight or tomorrow
unless someone beats me to it (that includes you Walter). If anyone else
wants to do it, speak up to avoid duplication of effort.
Later,
Brad
More information about the Digitalmars-d
mailing list