12-19-2022, 10:42 PM
_TOGGLEBIT is a lot like NOT. If you're not a person who uses TRUE/FALSE a lot, and you don't have a ton of NOT toggles in your code, then you'll probably never need or use _TOGGLEBIT. Honestly, I don't think I've ever made use of it either -- I'm much more of a _SETBIT type of person when I need to be, rather than a _TOGGLEBIT guy.
And honestly, I'm much more of an Old Skool Fool who just sticks to AND NOT, or OR with my code. It's just what I got used to years before anyone ever thought of a _SETBIT function, and it's just part of my natural coding style and habits; engrained into the very fiber of who I *is* as a programmer.
You'll see stuff in my code like: foo = foo OR 1, ucase = lcase AND NOT 32, and so on, but it's really really rare that you'll ever find any of the _READ, _SET, or _TOGGLE bit commands in stuff I wrote.
And honestly, I'm much more of an Old Skool Fool who just sticks to AND NOT, or OR with my code. It's just what I got used to years before anyone ever thought of a _SETBIT function, and it's just part of my natural coding style and habits; engrained into the very fiber of who I *is* as a programmer.
You'll see stuff in my code like: foo = foo OR 1, ucase = lcase AND NOT 32, and so on, but it's really really rare that you'll ever find any of the _READ, _SET, or _TOGGLE bit commands in stuff I wrote.