No need for version expression is a lie

Walter Bright newshound2 at digitalmars.com
Thu Aug 24 21:26:30 UTC 2023


On 8/24/2023 1:51 PM, Richard (Rikki) Andrew Cattermole wrote:
> ```d
> void func() {
>      static assert(false);
> }
> ```
> 
> As long as you don't call func, it won't fire.

The static assert will fail at compile time. `assert(0)` will fail at run time.



More information about the Digitalmars-d mailing list