Why is sformat and formattedWrite (appender) allocating GC mem here?

ag0aep6g anonymous at example.com
Tue Sep 3 14:23:48 UTC 2019


On 03.09.19 16:03, James Blachly wrote:
> For my own learning, why was a unittest to ensure no GC added to sformat 
> instead of a @nogc annotation?

`sformat` uses the GC less now, but it's not @nogc. It can still throw 
GC-allocated exceptions, e.g. when the arguments don't match the format 
string.


More information about the Digitalmars-d-learn mailing list