[Semi OT] Language for Game Development talk

Tobias Müller via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 26 15:04:23 PDT 2014


Walter Bright <newshound2 at digitalmars.com> wrote:
> On 9/26/2014 8:21 AM, Manu via Digitalmars-d wrote:
>> I've never used an exception before. I can't imagine a reason I would
>> ever want to.
> 
> Nothrow is your friend, then!
> 
> 
> BTW, you need exceptions if there appears in your code things like:
> 
>     if (errorHappened) goto LcleanupCode;

No you need destructors/RAII/finally. And all those work equally with
without exceptions (early return).

Tobi


More information about the Digitalmars-d mailing list