3 ms·
0xreadbook is not hexedecimal and disqualifies this whole post from any kind of intellectual redemption. Try 0xDEADBEEF,0xBAADF00D, or any constant listed here
by aa0 13y ago
0xreadbook is not hexedecimal and disqualifies this whole post from any kind of intellectual redemption.
Try 0xDEADBEEF,0xBAADF00D, or any constant listed here: http://en.wikipedia.org/wiki/Hexspeak http://en.wikipedia.org/wiki/Hexspeak
- tomjakubowski 13y agoI'd probably avoid 0xB16B00B5.
- aa0 13y agoI'd probably multiply and sum...
- pohl 13y agoThat's a bit overpedantic. It's a mnemonic for remembering the way the bytes are arranged in memory: "Ok, Bo: add re". Nobody complains that r, o, y, g, b, i, and v aren't actual colors, do they? Other than you, I mean. http://en.wikipedia.org/wiki/List_of_mnemonics http://en.wikipedia.org/wiki/List_of_mnemonics
- aa0 13y agor=red, o=orange, y=yellow, etc.. No problem there. What does K equal in hexadecimal? Well, it isn't defined for hexadecimal. K=20 is only defined in Base 21 and above. Other than me? Hah, nice cheap shot, pole ;-)
- pohl 13y agoThe letters need only illustrate the positions and be memorable. No hex is required for this purpose. Edit: The 0x communicates that the mnemonic is illustrating base 16, so your objection below is not valid.
- nonchalance 13y agoI stopped reading when I saw `i = 0xreadbook` and `typdef`. There are typos and there are fundamental misunderstandings -- not sure where these lie