One year of Go

Simen kjaeraas simen.kjaras at gmail.com
Sat Nov 13 06:40:56 PST 2010


Nick Sabalausky <a at a.a> wrote:

> try {
>     return true;
> } finally {
>     return false;
> }
>
>
> try {
>     throw new AssertionError();
> } finally {
>     return false;
> }
>
> I wonder how D handles those

Error: return statements cannot be in finally, scope(exit) or
scope(success) bodies

-- 
Simen


More information about the Digitalmars-d mailing list