Click here to Skip to main content
15,903,741 members
Home / Discussions / C#
   

C#

 
AnswerA suggestion Pin
Richard MacCutchan7-Aug-10 2:45
mveRichard MacCutchan7-Aug-10 2:45 
GeneralRe: A suggestion [modified] Pin
harold aptroot7-Aug-10 4:10
harold aptroot7-Aug-10 4:10 
GeneralRe: A suggestion [modified] Pin
Luc Pattyn7-Aug-10 4:37
sitebuilderLuc Pattyn7-Aug-10 4:37 
GeneralRe: A suggestion Pin
Richard MacCutchan7-Aug-10 5:34
mveRichard MacCutchan7-Aug-10 5:34 
GeneralRe: A suggestion Pin
Luc Pattyn7-Aug-10 5:38
sitebuilderLuc Pattyn7-Aug-10 5:38 
GeneralRe: A suggestion Pin
alton.turner9-Aug-10 14:04
alton.turner9-Aug-10 14:04 
GeneralRe: A suggestion Pin
TNCaver9-Aug-10 6:48
TNCaver9-Aug-10 6:48 
GeneralRe: A suggestion Pin
Luc Pattyn9-Aug-10 6:56
sitebuilderLuc Pattyn9-Aug-10 6:56 
GeneralRe: A suggestion Pin
Kenneth Kasajian9-Aug-10 9:13
Kenneth Kasajian9-Aug-10 9:13 
GeneralRe: A suggestion Pin
Jonathan C Dickinson9-Aug-10 21:44
Jonathan C Dickinson9-Aug-10 21:44 
GeneralRe: A suggestion Pin
Richard MacCutchan9-Aug-10 22:03
mveRichard MacCutchan9-Aug-10 22:03 
GeneralRe: A suggestion Pin
Jonathan C Dickinson10-Aug-10 0:11
Jonathan C Dickinson10-Aug-10 0:11 
GeneralRe: A suggestion Pin
Richard MacCutchan10-Aug-10 0:43
mveRichard MacCutchan10-Aug-10 0:43 
GeneralRe: A suggestion Pin
Jonathan C Dickinson10-Aug-10 1:17
Jonathan C Dickinson10-Aug-10 1:17 
GeneralRe: A suggestion Pin
Richard MacCutchan10-Aug-10 1:48
mveRichard MacCutchan10-Aug-10 1:48 
GeneralRe: A suggestion Pin
Jonathan C Dickinson10-Aug-10 21:25
Jonathan C Dickinson10-Aug-10 21:25 
GeneralRe: A suggestion Pin
Keith Barrow7-Aug-10 5:13
professionalKeith Barrow7-Aug-10 5:13 
GeneralRe: A suggestion Pin
Richard MacCutchan7-Aug-10 7:12
mveRichard MacCutchan7-Aug-10 7:12 
GeneralRe: A suggestion [modified] Pin
PIEBALDconsult7-Aug-10 16:58
mvePIEBALDconsult7-Aug-10 16:58 
AnswerRe: A suggestion Pin
Luc Pattyn7-Aug-10 17:01
sitebuilderLuc Pattyn7-Aug-10 17:01 
GeneralRe: A suggestion Pin
Richard MacCutchan7-Aug-10 21:23
mveRichard MacCutchan7-Aug-10 21:23 
GeneralRe: A suggestion Pin
Jonathan C Dickinson9-Aug-10 21:40
Jonathan C Dickinson9-Aug-10 21:40 
GeneralRe: A suggestion Pin
Stefan_Lang11-Aug-10 5:13
Stefan_Lang11-Aug-10 5:13 
The point isn't that the compiler gives a more useful message (as has been pointed out), the point is it will give an error message even if the type in question in fact has a conversion-to-bool operator!

Whether or not you cannot figure out what the actual cause of the resulting message is, is an entirely different question. I'd suppose everyone intelligent enough to put literals on the left hand side of a comparison will recognise what it means when the compiler states he wants an lvalue! At least I am Wink | ;)
GeneralRe: A suggestion Pin
Richard MacCutchan11-Aug-10 7:31
mveRichard MacCutchan11-Aug-10 7:31 
GeneralRe: A suggestion Pin
Stefan_Lang11-Aug-10 23:02
Stefan_Lang11-Aug-10 23:02 

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.