Throwing InvalidMemoryOperationError
Etienne Cimon via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 4 09:32:38 PDT 2015
On Thursday, 4 June 2015 at 16:20:28 UTC, Adam D. Ruppe wrote:
> On Thursday, 4 June 2015 at 16:12:54 UTC, Etienne Cimon wrote:
>> On another note, considering the unimaginable amount of bugs
>> that can stem from throwing in a constructor
>
> Throwing from a constructor is kinda important as it is the
> only way to signal failure on its input...
Wouldn't that be with `this() in { assert() }` ?
My concern is the fact that the destructor won't be called. Or
will it?
More information about the Digitalmars-d
mailing list