@nogc

ponce via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 11 02:25:04 PDT 2014


On Friday, 11 July 2014 at 05:41:50 UTC, Manu via Digitalmars-d 
wrote:
>>
>> I've thought of allowing "throw new ...", and yours would be 
>> in addition to
>> that, in @nogc functions, but was waiting to see how this 
>> would play out a
>> bit first.
>
> I should add, I'm not sure I see that my case should be 'in 
> addition'.
> I think my case should precede since I don't think it's 
> objectionable,
> but I'm really unsure I would get on board with 'throw new ...' 
> in
> @nogc functions. It seems to defeat the purpose to me...?
> Why would you want to allow throwing 'new' exceptions?

Would be great to be able to speficify a custom allocator to 
exceptions thrown, or at least have it malloc somehow.


More information about the Digitalmars-d mailing list