Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Cannot implicitly convert type 'object' to 'bool' Pin
PIEBALDconsult7-Aug-10 17:32
mvePIEBALDconsult7-Aug-10 17:32 
AnswerRe: Cannot implicitly convert type 'object' to 'bool' Pin
cor28799-Aug-10 4:31
cor28799-Aug-10 4:31 
GeneralRe: Cannot implicitly convert type 'object' to 'bool' Pin
Jonathan C Dickinson9-Aug-10 21:52
Jonathan C Dickinson9-Aug-10 21:52 
GeneralRe: Cannot implicitly convert type 'object' to 'bool' Pin
cor287910-Aug-10 1:59
cor287910-Aug-10 1:59 
AnswerRe: Cannot implicitly convert type 'object' to 'bool' Pin
michaelbierly9-Aug-10 4:38
michaelbierly9-Aug-10 4:38 
AnswerRe: Cannot implicitly convert type 'object' to 'bool' Pin
tom14439-Aug-10 5:22
tom14439-Aug-10 5:22 
AnswerRe: Cannot implicitly convert type 'object' to 'bool' Pin
Devi Ganesan9-Aug-10 5:25
Devi Ganesan9-Aug-10 5:25 
AnswerRe: Cannot implicitly convert type 'object' to 'bool' Pin
Bob10009-Aug-10 7:02
professionalBob10009-Aug-10 7: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.