"bearophile" <[email protected]> wrote in message
news:[email protected]...
> 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...)