Making AssertError a singleton

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 12 13:00:37 PST 2016


On 12/12/2016 12:43 PM, Guillaume Boucher wrote:
> On Monday, 12 December 2016 at 15:51:07 UTC, Andrei Alexandrescu wrote:
>> I think all Errors should be singletons - multiple objects in that
>> hierarchy arguably make no sense.
>
> With that logic, why does Throwable have the field "next"?

Probably only Exception should. -- Andrei


More information about the Digitalmars-d mailing list