I hate class destructors with a burning passion
Walter Bright
newshound2 at digitalmars.com
Wed Jun 9 21:44:20 UTC 2021
On 6/9/2021 7:01 AM, Steven Schveighoffer wrote:
> I'm 99% sure we could have a nogc stack trace for InvalidMemoryOperationError if
> we had a nogc demangler. Everything else seems already nogc, just not fully marked.
I don't believe it would be hard to make a nogc demangler, even if it used malloc.
Even better, provide a "sink" parameter for the result, and have the demangler
defer its final allocation needs to the caller, and free its temporary data itself.
More information about the Digitalmars-d
mailing list