return in void functions

BCS none at anon.com
Wed Mar 4 22:01:36 PST 2009


Hello Nick,


> There has to be a better way to handle that.  Making "void
> foo(){return 1;}" valid code with no warning is just plain sloppy. (In
> fact, I've been bitten by that before.)
> 

I wouldn't mind seeing it limited to "return FnReturningVoid();"





More information about the Digitalmars-d mailing list