jokes for the "technologically inclined"

Discuss anything and everything. Keep it clean (or else).

Re: jokes for the "technologically inclined"

Postby mattallen37 » 04 May 2012, 20:16

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 ;)
User avatar
mattallen37
 
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA

Re: jokes for the "technologically inclined"

Postby spillerrec » 04 May 2012, 20:53

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/
User avatar
spillerrec
 
Posts: 358
Joined: 01 Oct 2010, 06:37
Location: Denmark

Re: jokes for the "technologically inclined"

Postby mattallen37 » 04 May 2012, 21:01

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 ;)
User avatar
mattallen37
 
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA

Previous

Return to Off-Topic

Who is online

Users browsing this forum: No registered users and 1 guest

cron