throw Exception with custom message in nogc code
poliklosio via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jun 4 17:05:15 PDT 2016
I need to throw some exceptions in my code, but I don't want to
ever care about the garbage collector.
I have seen some solutions to throwing exceptions in nogc code,
but only toy examples, like
https://p0nce.github.io/d-idioms/#Throwing-despite-@nogc
The solution sort of works, but doesn't show how to pass a custom
string to the exception, and the text says "This trick is a dirty
Proof Of Concept. Just never do it.".
Is there a solution?
More information about the Digitalmars-d-learn
mailing list