View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-16-2021 , 21:26   Re: [TUT] Bits, Bit-fields, and Bit-wise Operators
Reply With Quote #99

Quote:
Originally Posted by Abhinash View Post
Out of curiosity I just created a mod which currently has 32 different round types. Maybe in future I will add more. That's why I asked and also for knowledge. Because I am also learning C and C++.
"round type" sounds like something that has mutually exclusive values (i.e. two or more round types cannot be active at the same time). If this is true, then you shouldn't be using bits for storing these values, you should use an integer-based enum.
__________________
fysiks is offline