Making AssertError a singleton
Guillaume Piolat via Digitalmars-d
digitalmars-d at puremagic.com
Tue Dec 13 03:39:16 PST 2016
On Monday, 12 December 2016 at 21:02:11 UTC, Andrei Alexandrescu
wrote:
>
> That will come too.
>
>
> Andrei
Great teaser :)
For reference, here is how I currently do this:
- make Object.~this() @nogc with a cast
- throw emplaced exceptions in malloc'd memory
- release them explicitely at catch time
This probably breaks chaining so maybe RC objects are needed
first, dunno.
More information about the Digitalmars-d
mailing list