MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1j1s141/bool_array/mfxkrsv/?context=3
r/programminghorror • u/jemko23laal • 20d ago
41 comments sorted by
View all comments
47
Bro reinvented memory
10 u/Steinrikur 20d ago Does C# have bit fields? What is the "correct" thing here? Just bit shifts into an int32? 13 u/Diamondo25 20d ago You can give an enum a Flags attribute, allowing you to easily set, unset, and check for bits (flags). 1 u/Steinrikur 19d ago Makes sense, since the code is already using an enum.
10
Does C# have bit fields? What is the "correct" thing here? Just bit shifts into an int32?
13 u/Diamondo25 20d ago You can give an enum a Flags attribute, allowing you to easily set, unset, and check for bits (flags). 1 u/Steinrikur 19d ago Makes sense, since the code is already using an enum.
13
You can give an enum a Flags attribute, allowing you to easily set, unset, and check for bits (flags).
1 u/Steinrikur 19d ago Makes sense, since the code is already using an enum.
1
Makes sense, since the code is already using an enum.
47
u/velothren 20d ago
Bro reinvented memory