Unreachable statement, do or do not, there is no try

Matthias Bentrup via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 10 12:45: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.

s/Object/Error/ ?


More information about the Digitalmars-d mailing list