Unreachable statement, do or do not, there is no try
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 10 12:48:20 PST 2015
On Tuesday, 10 February 2015 at 20:37:16 UTC, Walter Bright wrote:
> On 2/9/2015 11:07 PM, deadalnix wrote:
>> On Tuesday, 10 February 2015 at 07:01:18 UTC, Jacob Carlborg
>> wrote:
>>> DMD will complain about the second example if warnings are
>>> enabled.
>>
>> Ok I think that answer the question.
>
> The thing is, you can still catch an Object, so catching
> Exception won't quite catch them all.
yes, but if you don't catch, then you continue unwinding, so
whatever road you take, there is no way you reach whatever comes
after the try.
More information about the Digitalmars-d
mailing list