How to enforce compile time evaluation (and test if it was done at compile time)

Jonathan M Davis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 1 09:37:55 PST 2017


On Wednesday, March 01, 2017 17:02:37 Dukc via Digitalmars-d-learn wrote:
> On Wednesday, 1 March 2017 at 16:43:41 UTC, Jonathan M Davis
>
> wrote:
> > Assert is for program invariants. If the condition is true,
> > your program is outright broken.
>
> Error: He meant that if the condition is FALSE, the program is
> faulty.

LOL. True. Sorry about that. Invariants must be true, not false. I should
have caught that.

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list