Is there any writeln like functions without GC?

Adam D. Ruppe destructionator at gmail.com
Thu Oct 31 13:46:07 UTC 2019


On Thursday, 31 October 2019 at 03:56:56 UTC, lili wrote:
> Hi:
>    why writeln need GC?

It almost never does, it just keeps the option open in case

* it needs to throw an exception (like if stdout is closed)

* you pass it a custom type with toString that uses GC

@nogc is just super strict and doesn't even allow for rare cases.


More information about the Digitalmars-d-learn mailing list