RFC: reference counted Throwable

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 20 00:33:06 PDT 2014


On Saturday, 20 September 2014 at 07:29:52 UTC, Dicebot wrote:
> I have been thinking about something like `ARC` interface and 
> `ARCException : Throwable, ARC` with all the automatic ref 
> inc/dec calls you have mentioned added for any class that 
> implements `ARC` interface.

..and yes, I'd expect it to be the default one used by Phobos 
(possibly with some backing pool allocator). It isn't critical 
for GC-enabled applications to use GC-based exceptions but 
contrary is true.


More information about the Digitalmars-d mailing list