Yet another slap on the hand by implicit bool to int conversions

Timon Gehr timon.gehr at gmx.ch
Sun Jun 19 15:28:59 PDT 2011


Sry should have been

int daysinmonth = month==1?28:30+((month&1)==(month>6));

obv.

Cheers,
-Timon


More information about the Digitalmars-d mailing list