Click here to Skip to main content
15,898,134 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralProgramming Lesson of the Day Pin
den2k8825-Jan-17 5:43
professionalden2k8825-Jan-17 5:43 
GeneralRe: Programming Lesson of the Day Pin
OriginalGriff25-Jan-17 5:52
mveOriginalGriff25-Jan-17 5:52 
GeneralRe: Programming Lesson of the Day PinPopular
Richard Deeming25-Jan-17 6:18
mveRichard Deeming25-Jan-17 6:18 
GeneralRe: Programming Lesson of the Day Pin
OriginalGriff25-Jan-17 6:21
mveOriginalGriff25-Jan-17 6:21 
GeneralRe: Programming Lesson of the Day Pin
MacSpudster25-Jan-17 7:12
professionalMacSpudster25-Jan-17 7:12 
GeneralRe: Programming Lesson of the Day Pin
Richard Deeming25-Jan-17 7:13
mveRichard Deeming25-Jan-17 7:13 
GeneralRe: Programming Lesson of the Day Pin
Jeremy Falcon25-Jan-17 9:24
professionalJeremy Falcon25-Jan-17 9:24 
GeneralRe: Programming Lesson of the Day Pin
Jeremy Falcon25-Jan-17 9:23
professionalJeremy Falcon25-Jan-17 9:23 
Just to expand on Richard's point...

I'm more of a C guy than C#, but like with C/C++ I can only assume that in this case, the compiler is doing a binary operation of AND, and 1 (or any non-zero) AND 0 is always going to be zero, which is expressed as false in this case. It's the difference between a bitwise operator and a logical one.
Jeremy Falcon

GeneralRe: Programming Lesson of the Day Pin
OriginalGriff25-Jan-17 9:36
mveOriginalGriff25-Jan-17 9:36 
GeneralRe: Programming Lesson of the Day Pin
Jeremy Falcon25-Jan-17 10:17
professionalJeremy Falcon25-Jan-17 10:17 
GeneralRe: Programming Lesson of the Day Pin
irneb25-Jan-17 20:06
irneb25-Jan-17 20:06 
GeneralRe: Programming Lesson of the Day Pin
OriginalGriff25-Jan-17 22:07
mveOriginalGriff25-Jan-17 22:07 
GeneralRe: Programming Lesson of the Day Pin
den2k8825-Jan-17 22:22
professionalden2k8825-Jan-17 22:22 
GeneralRe: Programming Lesson of the Day Pin
Herbie Mountjoy26-Jan-17 0:41
professionalHerbie Mountjoy26-Jan-17 0:41 
GeneralRe: Programming Lesson of the Day Pin
englebart26-Jan-17 2:43
professionalenglebart26-Jan-17 2:43 
GeneralRe: Programming Lesson of the Day Pin
den2k8826-Jan-17 21:19
professionalden2k8826-Jan-17 21:19 
GeneralRe: Programming Lesson of the Day Pin
irneb26-Jan-17 1:43
irneb26-Jan-17 1:43 
GeneralRe: Programming Lesson of the Day Pin
den2k8826-Jan-17 21:14
professionalden2k8826-Jan-17 21:14 
GeneralRe: Programming Lesson of the Day Pin
Alister Morton26-Jan-17 3:52
Alister Morton26-Jan-17 3:52 
GeneralRe: Programming Lesson of the Day Pin
Jeremy Falcon26-Jan-17 5:39
professionalJeremy Falcon26-Jan-17 5:39 
GeneralRe: Programming Lesson of the Day Pin
James Curran26-Jan-17 4:07
James Curran26-Jan-17 4:07 
GeneralRe: Programming Lesson of the Day Pin
Nelek25-Jan-17 11:07
protectorNelek25-Jan-17 11:07 
GeneralRe: Programming Lesson of the Day Pin
den2k8825-Jan-17 22:15
professionalden2k8825-Jan-17 22:15 
GeneralRe: Programming Lesson of the Day Pin
Gerry Schmitz26-Jan-17 6:51
mveGerry Schmitz26-Jan-17 6:51 
GeneralRe: Programming Lesson of the Day Pin
den2k8826-Jan-17 21:15
professionalden2k8826-Jan-17 21:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   381 votes