jokes for the "technologically inclined"

Discuss anything and everything. Keep it clean (or else).
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: jokes for the "technologically inclined"

Post by mattallen37 »

To be or not to be is ff.
0x2B | !0x2B = 0xFF
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
spillerrec
Posts: 358
Joined: 01 Oct 2010, 06:37
Location: Denmark
Contact:

Re: jokes for the "technologically inclined"

Post by spillerrec »

mattallen37 wrote:To be or not to be is ff.
0x2B | !0x2B = 0xFF
No, it is to be.
'!' is logical NOT, so !2B evaluates to 0 and this leaves 0x2B back.
However even if you used the bit-wise NOT, you would normally get 0xFFFFFFFF which is something entirely else.
My blog: http://spillerrec.dk/category/lego/
RICcreator, an alternative to nxtRICeditV2: http://riccreator.sourceforge.net/
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: jokes for the "technologically inclined"

Post by mattallen37 »

You're right, I meant to use a ~, and I meant it to be an unsigned byte (not long).
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests