recently, iv been intrigued by bitflags, (shl, shr, ect). i understand how to use them and that its used to save cpu memory, and its faster, but what real uses are there in a script?
im looking for examples / ideas, so i can learn more about them![]()
recently, iv been intrigued by bitflags, (shl, shr, ect). i understand how to use them and that its used to save cpu memory, and its faster, but what real uses are there in a script?
im looking for examples / ideas, so i can learn more about them![]()
<TViYH> i had a dream about you again awkwardsaw
Malachi 2:3
You can use an integer to store settings, for example. Depending on how many bits you need for each setting, you could store a variety of them in one variable instead of having multiple booleans and integers to accomplish the same task.
:-)
There are currently 1 users browsing this thread. (0 members and 1 guests)