modulus redux

TomD t_demmer at nospam.web.de
Sun Jul 12 22:42:38 PDT 2009


Andrei Alexandrescu Wrote:

[...]
> 
> The  multiplicative expressions  are multiplication  (\ccbox{a  * b}),
> division  (\ccbox{a  / b}),  and  remainder  (\ccbox{a  \% b}).   They
> operate  on numeric types  only. The  result type  of either  of these
> operations   is  same  as   the  type   of  \ccbox{true   ?  a   :  b}
> (see~\S~\ref{sec:conditional-operator}).

Isn't (true?a:b) always (a)?

TomD



More information about the Digitalmars-d mailing list