On exceptions in D

Dmitry Olshansky dmitry.olsh at gmail.com
Sun Feb 9 12:26:08 PST 2014


09-Feb-2014 22:05, Jakob Ovrum пишет:
> On Sunday, 9 February 2014 at 17:57:23 UTC, Dmitry Olshansky wrote:
>> 1. Exceptions are class instances, hence (by default) are allocated on
>> GC heap. This is wrong default, GC is no place for temporaries.
>
> This isn't accurate. GC is inherent to the `new` operator, not to classes.
>
I'm saying that basically classes imply infinite lifetime model. Then 
you may work extra hard and do things like emplace and manual allocation.

>> void risef(T...)(string fmt, T args)
>
> raise*?

Aye, there is my ingelsh ;)

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list