Making AssertError a singleton

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 12 07:51:07 PST 2016


Here it is:

https://github.com/dlang/druntime/pull/1710

It relieves code that uses assert from needing the GC. I think all 
Errors should be singletons - multiple objects in that hierarchy 
arguably make no sense. But of course there are many situations out 
there. If this breaks your code, please holler.


Andrei


More information about the Digitalmars-d mailing list