Function with try/catch and no return statement

Michel Fortin michel.fortin at michelf.com
Sat Feb 6 07:17:26 PST 2010


On 2010-02-06 10:13:39 -0500, Trass3r <un at known.com> said:

>> I'd say it's as it should. Even though in this particular situation  
>> there is no way the catch block will be used, it's needed for generic  
>> programming. Consider this:
> 
> What the hell are you talking about? His post isn't about throwing  exceptions.
> There is no return statement and it compiles nevertheless.

Ah, oops, sorry. Looks like I couldn't even read properly the 
explanation. You're right of course.

That should be filled as a bug.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list