Plan for Exceptions and @nogc?

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Mon Feb 16 23:28:02 PST 2015


On Monday, 16 February 2015 at 23:17:03 UTC, Jonathan Marler 
wrote:
> Is there a proposal for how D will support throwing Exceptions 
> in @nogc code in the future?  I've searched the forums and 
> found different proposals that involve things like 
> pre-allocated exceptions, non-gc heap allocated exceptions or 
> even stack allocated exceptions.  I don't want to debate the 
> details of each solution, I'd just like to know if any of these 
> proposals are deemed a "good idea", or if any of them are 
> currently being worked on.  I personally think that using 
> non-gc heap allocated exceptions in combination with the new 
> scope semantics would be a great solution in many cases, but I 
> don't know if there is any consensus or if this topic is just 
> on the back-burner. Thanks.

Would RefCounted!T being @nogc help alleviate this issue?


More information about the Digitalmars-d mailing list