Click here to Skip to main content
15,920,896 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: A suggestion Pin
Richard MacCutchan12-Aug-10 1:30
mveRichard MacCutchan12-Aug-10 1:30 
AnswerRe: Cannot implicitly convert type 'object' to 'bool' PinPopular
Orjan Westin7-Aug-10 9:06
professionalOrjan Westin7-Aug-10 9:06 
GeneralRe: Cannot implicitly convert type 'object' to 'bool' PinPopular
Richard MacCutchan7-Aug-10 11:23
mveRichard MacCutchan7-Aug-10 11:23 
GeneralRe: Cannot implicitly convert type 'object' to 'bool' Pin
Orjan Westin7-Aug-10 12:12
professionalOrjan Westin7-Aug-10 12:12 
GeneralRe: Cannot implicitly convert type 'object' to 'bool' Pin
Richard MacCutchan7-Aug-10 21:19
mveRichard MacCutchan7-Aug-10 21:19 
GeneralRe: Cannot implicitly convert type 'object' to 'bool' Pin
ErrolErrol9-Aug-10 7:59
ErrolErrol9-Aug-10 7:59 
JokeRe: Cannot implicitly convert type 'object' to 'bool' Pin
Orjan Westin10-Aug-10 2:27
professionalOrjan Westin10-Aug-10 2:27 

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.