Google's Go & Exceptions

Nick Sabalausky a at a.a
Tue Jan 26 12:01:29 PST 2010


"Walter Bright" <newshound1 at digitalmars.com> wrote in message 
news:hjnd9r$dtp$1 at digitalmars.com...
> bearophile wrote:
>> In GCC there is also the "warn_unused_result" function attribute that
>> raises a compile time warning if you don't use the return value of a
>> function:
>
> That may wind up suffering similar problems as checked exceptions do - 
> just do a quick and dirty assign the return value to a hastily declared 
> temp and ignore it, meaning to fix it later.
>

It it were an error (or treated as an error or a D-style "warning"), then 
yes. But as a true warning, not so much. 





More information about the Digitalmars-d mailing list