One year of Go
Nick Sabalausky
a at a.a
Sat Nov 13 06:28:20 PST 2010
"bearophile" <bearophileHUGS at lycos.com> wrote in message
news:ibm3n8$b22$1 at digitalmars.com...
> retard:
>
>> Any links to relevant research?
>
> If your JavaScript function ends with this, what kind of errors or return
> value does it generate?
>
> return
> 2 + 2;
>
> Found in this thread:
> http://stackoverflow.com/questions/1995113/strangest-language-feature
>
Great thread there. These are a couple of really interesting ones mentined
there:
try {
return true;
} finally {
return false;
}
try {
throw new AssertionError();
} finally {
return false;
}
I wonder how D handles those (On my way out the door so don't have a chance
to try them ATM...)
More information about the Digitalmars-d
mailing list