12.07.2014, 19:52
It's not like C/++ where the booleans are smaller than regular 32 bits integer ?
Okay, but for the second point i don't agree.
It just allows you a better variable managing than using integers. Particularly (and that's the only point of booleans) if you know that your variable will not contain something else than false or true (0 or 1).
It's very useful for example in player stats for RP(G) server ("hasMask", "hasPhone", etc).
Okay, but for the second point i don't agree.
It just allows you a better variable managing than using integers. Particularly (and that's the only point of booleans) if you know that your variable will not contain something else than false or true (0 or 1).
It's very useful for example in player stats for RP(G) server ("hasMask", "hasPhone", etc).