I do something similar with my error types. I have a method called assumeOkay. It'll assert if it isn't ok.
There is also unsafeGetLiteral for slice based types. All @system.
Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn Fri, 25 Aug 2023 14:51:50 -0700
I do something similar with my error types. I have a method called assumeOkay. It'll assert if it isn't ok.
There is also unsafeGetLiteral for slice based types. All @system.