and does not need cryptic ugly "C"ism alignment indicators. In fact, you don't need to use bitpacked at all, as Pascal provides alternatives.
yes, it does. The problem is, the alternatives are less than they could be.
You are approaching this the wrong way. You should push to "Pascalize" Windows,
Good luck pushing to "Pascalize" Windows.
and even quit using Windows or any other OS that uses C for that matter.
What language is the OS you are currently using written in ? Are you one of those that indulges in "do as I say, not as I do" ?
Ban/Boycott/Bar C (BBBC) from your life.
I wouldn't use the words "ban", "boycott" and/or "bar". I'd say, seek something better which is the main reason I am here but, it seems there is little appetite to make Pascal better, more powerful and more capable among other things. I'm starting to understand why C programmers don't migrate to Pascal.
Consider using bitwise operators: AND, OR, XOR. Probably "bitpacked" was added in a moment of weakness, just like +=, I say.
I think it's much better to consider simplifying data definitions and enhancing the compiler to make them possible.
Unsurprisingly, I disagree, again. The programmer should always be busy, always thinking, never lazy. It is a preventative precaution against Alzheimer at least. The effect of compilers taking burden of calculations on us mentally is bad. Similar to the effect of smartphones on our eyes. Just terrible.
I don't consider counting bits as a form of thinking. I consider it tedious, boring and error prone. I really doubt such activities prevent Alzheimers but, I'm no expert in that area, I might be wrong, though no evidence of any kind has surfaced to support that possibility.
But if you insist,
BBBC, simple!
very simple, also very
unrealisitic unrealistic.
Consider it like separation between church and state, or between data and user interface.
There is nothing to separate. It's only a data structure definition. Pulverazing it into bits and pieces because a language doesn't support basic features is separation of thinking from action.
Error is human nature, accept it.
I would say that's quite evident.
Look at the full half of the cup: you know precisely how many bits there are in these gaps, because you had to recompile your code a few times to see if you counted them right this time. Plenty of pleasure when you finally do.
Your definition of pleasure is different than mine. But, if you derive pleasure from counting bits and getting it right, be my guest.
Wishful thinking is just bad. But at least you admit your mistakes, and you know deep inside that asking for TALIGN is wrong.
Apparently it is necessary to point out that I never claimed "wishful thinking" was good. Thank you for giving me credit for admitting my mistakes, after all your comments above, I'm feeling a bit surprised (pleasantly though.)
Deep down inside, I think the compiler should provide a straightforward way of aligning bit fields.
My pleasure!
I'm pleased you derived some pleasure. It wasn't a total loss.
You've shown being able to do a lot better than your previous post.