Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 06, 2006 Now we have assertion messages | ||||
---|---|---|---|---|
| ||||
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" |
June 06, 2006 Re: Now we have assertion messages | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | 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
|
June 06, 2006 Re: Now we have assertion messages | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | 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
|
June 06, 2006 Re: Now we have assertion messages | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | "Frank Benoit" <keinfarbton@nospam.xyz> wrote in message news:e64vcd$1iol$1@digitaldaemon.com... > Feature request: Please add the message "missing return statement at function exit" I was just thinking about this today when I was mowing the lawn! |
Copyright © 1999-2021 by the D Language Foundation