On 7/29/21 9:22 PM, Mathias LANG wrote: > On Friday, 30 July 2021 at 03:45:21 UTC, Ali Çehreli wrote: >> Almost all of my programs are in the following pattern: >> >> ```D >> import std.stdio; >> >> void main(string[] args) { >> version (unittest) { >> // Don't execute the main program when unit testing >> return; >> } >> } >> ``` > > Are you aware that this isn't necessary since v2.090.0 ? > https://dlang.org/changelog/2.090.0.html#unittest-default
No, I wasn't aware. Thanks! Part of the reason must be because these programs started with 2.084. :)
Ali