On Wednesday, 26 April 2023 at 23:02:07 UTC, Richard (Rikki) Andrew Cattermole wrote:
Don't forget ``num % 2 == 0``.

None should matter, pretty much all production compilers within the last 30 years should recognize all forms of this and do the right thing.

Thanks. Fastest reply ever! And I believe across the world? I suppose my examples required overhead of a function call. So maybe num % 2 == 0 is fastest?
  • quick question, ... WhatMeWorry via Digitalmars-d-learn
    • Re: quick q... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: qui... WhatMeWorry via Digitalmars-d-learn
        • Re:... H. S. Teoh via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
        • Re:... Cecil Ward via Digitalmars-d-learn
          • ... Cecil Ward via Digitalmars-d-learn

Reply via email to