Yes, as Andrei mentioned, it is sometimes useful. But, at least during overload resolution, it must not occur.
Kenji Hara 2013/4/29 Timon Gehr <[email protected]> > On 04/28/2013 11:22 PM, Mehrdad wrote: > >> On Sunday, 28 April 2013 at 21:17:39 UTC, Walter Bright wrote: >> >>> On 4/28/2013 1:58 PM, Mehrdad wrote: >>> >>>> The entire confusion in this thread is because you're mixing up the two. >>>> >>> >>> I know exactly what you're talking about, and I haven't seen any >>> confusion from other posters, either. >>> >> >> >> If I just told you why Boolean arithmetic isn't integer arithmetic, and >> you know exactly what I'm talking about, then why do you say Booleans >> are integers? >> >> Isn't that self-contradictory? >> > > He is saying bool is an integral type in D. (i.e. it can be promoted to > 'int' in order to support integer arithmetic.) >
