C++ proposal: There are exactly 8 bits in a byte
open-std.org
C++ proposal: There are exactly 8 bits in a byte
1–10 of 357 posts
Re: C++ proposal: There are exactly 8 bits in a byte
#2Not sure about that, seems pretty controversial to me. Are we forgetting about the UNIVACs?
Re: C++ proposal: There are exactly 8 bits in a byte
#3This is both uncontroversial and incredibly spicy. I love it.
Re: C++ proposal: There are exactly 8 bits in a byte
#4[dead]
Re: C++ proposal: There are exactly 8 bits in a byte
#5JF Bastien is a legend for this, haha.
I would be amazed if there's any even remotely relevant code that deals meaningfully with CHAR_BIT != 8 these days.
(... and yes, it's about time.)
Re: C++ proposal: There are exactly 8 bits in a byte
#6But how many bytes are there in a word?
Re: C++ proposal: There are exactly 8 bits in a byte
#7But how many bytes are there in a word?
If you're on x86, the answer can be simultaneously 16, 32, and 64.
Re: C++ proposal: There are exactly 8 bits in a byte
#8Not sure about that, seems pretty controversial to me. Are we forgetting about the UNIVACs?
Hopefully we are; it's been a long time, but as I remember indexing in strings on them is a disaster.
Re: C++ proposal: There are exactly 8 bits in a byte
#9But how many bytes are there in a word?
"Word" is an outdated concept we should try to get rid of.
Re: C++ proposal: There are exactly 8 bits in a byte
#10But think of ternary computers!