On Saturday, 3 July 2021 at 22:04:04 UTC, Luis wrote:
scope(exit) it's syntactic sugar for a classic `try {} finally {}` . The documentation says that must be executed.
It works if you replace printf() with writeln() or use writeln() after. There must be some buffer issue.