How do I determine if *exactly* one boolean is true, without type conversion?
You can actually accomplish this using only boolean logic, although there’s perhaps no practical value of that in your example. The boolean version is much more involved than simply counting the number of true values. Anyway, for the sake of satisfying intellectual curiosity, here goes. First, the idea of using a series of XORs is … Read more