Click here to Skip to main content
14,269,309 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
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
memberenglebart26-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
memberirneb26-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
memberAlister 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
memberJames Curran26-Jan-17 4:07 
No, it's the use of an int as a boolean that C# complains about. The assignment in the if() is fine, provided it's a boolean:
bool x = false;

if (x = true)
    "It's True".Dump();
Truth,

James

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 
GeneralRe: Programming Lesson of the Day Pin
kdmote26-Jan-17 3:41
memberkdmote26-Jan-17 3:41 
GeneralRe: Programming Lesson of the Day Pin
James Curran26-Jan-17 4:05
memberJames Curran26-Jan-17 4:05 
GeneralRe: Programming Lesson of the Day Pin
kdmote26-Jan-17 6:51
memberkdmote26-Jan-17 6:51 
GeneralRe: Programming Lesson of the Day Pin
Richard Deeming26-Jan-17 4:27
mveRichard Deeming26-Jan-17 4:27 
GeneralRe: Programming Lesson of the Day Pin
James Curran26-Jan-17 10:04
memberJames Curran26-Jan-17 10:04 
PraiseRe: Programming Lesson of the Day Pin
Slow Eddie26-Jan-17 3:52
professionalSlow Eddie26-Jan-17 3:52 
GeneralRe: Programming Lesson of the Day Pin
den2k8825-Jan-17 6:23
professionalden2k8825-Jan-17 6:23 
GeneralRe: Programming Lesson of the Day Pin
KarstenK25-Jan-17 7:14
mveKarstenK25-Jan-17 7:14 
GeneralRe: Programming Lesson of the Day Pin
den2k8825-Jan-17 22:13
professionalden2k8825-Jan-17 22:13 
GeneralRe: Programming Lesson of the Day Pin
sasadler26-Jan-17 5:24
membersasadler26-Jan-17 5:24 
GeneralRe: Programming Lesson of the Day Pin
TheGreatAndPowerfulOz25-Jan-17 7:00
memberTheGreatAndPowerfulOz25-Jan-17 7:00 
GeneralRe: Programming Lesson of the Day Pin
PIEBALDconsult25-Jan-17 7:56
protectorPIEBALDconsult25-Jan-17 7:56 
GeneralRe: Programming Lesson of the Day Pin
den2k8825-Jan-17 22:11
professionalden2k8825-Jan-17 22:11 

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.