Bitfields and flags, alturnitives #59
crazymonkyyy
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
so you abstract packed bool in the left over space of an int(or pointer); you want to name this bits user defined names and I also want to get some sort of switch statement pattern working
Walter claims that "bitfields without being in the compiler polluted the structs
Fields!S...(but upstream inst actually able to print bitfields writeln rn anyway, so what does it matter)so, you want these c pattern to get nice names and the way you implement it to not be hostile to further meta programming(such as letting a writeln work)
what are the real options?, Walter isnt a meta programmer and while
phoboes.bitswhatevercould be bad I haven't triedIm pretty sure
phoboes.flagis terrible by all accountsif you narrowed the scope to be only flags + leftover int; could it be made simpler, have writeln, have a switch friendly primitive?
Beta Was this translation helpful? Give feedback.
All reactions