Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DAY 040: _TOGGLEBIT
#11
_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.  Wink
Reply


Messages In This Thread
DAY 040: _TOGGLEBIT - by Pete - 12-19-2022, 07:43 PM
RE: DAY 040: _TOGGLEBIT - by mnrvovrfc - 12-19-2022, 08:32 PM
RE: DAY 040: _TOGGLEBIT - by SMcNeill - 12-19-2022, 08:43 PM
RE: DAY 040: _TOGGLEBIT - by mnrvovrfc - 12-19-2022, 09:37 PM
RE: DAY 040: _TOGGLEBIT - by SMcNeill - 12-19-2022, 09:05 PM
RE: DAY 040: _TOGGLEBIT - by Pete - 12-19-2022, 09:17 PM
RE: DAY 040: _TOGGLEBIT - by SMcNeill - 12-19-2022, 09:47 PM
RE: DAY 040: _TOGGLEBIT - by Pete - 12-19-2022, 10:03 PM
RE: DAY 040: _TOGGLEBIT - by SMcNeill - 12-19-2022, 10:22 PM
RE: DAY 040: _TOGGLEBIT - by Pete - 12-19-2022, 10:30 PM
RE: DAY 040: _TOGGLEBIT - by SMcNeill - 12-19-2022, 10:42 PM
RE: DAY 040: _TOGGLEBIT - by bplus - 12-19-2022, 11:20 PM
RE: DAY 040: _TOGGLEBIT - by Pete - 12-19-2022, 11:22 PM
RE: DAY 040: _TOGGLEBIT - by Jack - 12-19-2022, 11:58 PM
RE: DAY 040: _TOGGLEBIT - by Pete - 12-20-2022, 01:11 AM
RE: DAY 040: _TOGGLEBIT - by vince - 12-20-2022, 01:59 AM
RE: DAY 040: _TOGGLEBIT - by OldMoses - 12-20-2022, 03:46 AM



Users browsing this thread: 7 Guest(s)