Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
AnswerRe: If (null == something) or if (something == null) [modified] PinPopular
Luc Pattyn2-Jul-09 13:52
sitebuilderLuc Pattyn2-Jul-09 13:52 
AnswerRe: If (null == something) or if (something == null) Pin
Dave Doknjas2-Jul-09 14:15
Dave Doknjas2-Jul-09 14:15 
AnswerRe: If (null == something) or if (something == null) Pin
Thomas Weller2-Jul-09 14:18
Thomas Weller2-Jul-09 14:18 
AnswerRe: If (null == something) or if (something == null) Pin
PIEBALDconsult2-Jul-09 15:11
mvePIEBALDconsult2-Jul-09 15:11 
AnswerRe: If (null == something) or if (something == null) Pin
_Maxxx_2-Jul-09 18:03
professional_Maxxx_2-Jul-09 18:03 
GeneralRe: If (null == something) or if (something == null) Pin
Moim Hossain2-Jul-09 22:08
Moim Hossain2-Jul-09 22:08 
GeneralRe: If (null == something) or if (something == null) Pin
moon_stick3-Jul-09 1:03
moon_stick3-Jul-09 1:03 
GeneralRe: If (null == something) or if (something == null) Pin
PIEBALDconsult3-Jul-09 8:27
mvePIEBALDconsult3-Jul-09 8:27 
Right, but even "modern" C compilers will issue a warning if the mistake is made:

Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland
aa.c:
Warning W8060 aa.c 25: Possibly incorrect assignment in function main



And HP C:

    if ( result = 5 )
....^
%CC-I-CONTROLASSIGN, In this statement, the assignment expression "result=5" is used as the controlling expression of an if, while or for statement.
at line number 13 in file MY$ROOT:[000000]AA.C;1



The D language defines the mistake as an error.
AnswerRe: If (null == something) or if (something == null) Pin
btough2-Jul-09 22:08
btough2-Jul-09 22:08 
QuestionDrawing a smooth line graph Pin
Rsesky0002-Jul-09 12:44
Rsesky0002-Jul-09 12:44 
AnswerRe: Drawing a smooth line graph Pin
Luc Pattyn2-Jul-09 12:58
sitebuilderLuc Pattyn2-Jul-09 12:58 
GeneralRe: Drawing a smooth line graph Pin
Rsesky0002-Jul-09 13:49
Rsesky0002-Jul-09 13:49 
GeneralRe: Drawing a smooth line graph [modified] Pin
Luc Pattyn2-Jul-09 13:54
sitebuilderLuc Pattyn2-Jul-09 13:54 
GeneralRe: Drawing a smooth line graph Pin
Rsesky0002-Jul-09 14:27
Rsesky0002-Jul-09 14:27 
QuestionBitmap Pixels in Bulk Pin
hpydir2-Jul-09 11:37
hpydir2-Jul-09 11:37 
AnswerRe: Bitmap Pixels in Bulk Pin
harold aptroot2-Jul-09 11:41
harold aptroot2-Jul-09 11:41 
AnswerRe: Bitmap Pixels in Bulk Pin
Svetlin Panayotov2-Jul-09 11:43
Svetlin Panayotov2-Jul-09 11:43 
GeneralRe: Bitmap Pixels in Bulk Pin
hpydir2-Jul-09 11:50
hpydir2-Jul-09 11:50 
QuestionGrouping data in tabs Pin
spankyleo1232-Jul-09 11:35
spankyleo1232-Jul-09 11:35 
QuestionRe: Grouping data in tabs Pin
harold aptroot2-Jul-09 11:52
harold aptroot2-Jul-09 11:52 
AnswerRe: Grouping data in tabs Pin
spankyleo1232-Jul-09 11:56
spankyleo1232-Jul-09 11:56 
GeneralRe: Grouping data in tabs Pin
harold aptroot2-Jul-09 12:27
harold aptroot2-Jul-09 12:27 
AnswerRe: Grouping data in tabs Pin
Luc Pattyn2-Jul-09 12:22
sitebuilderLuc Pattyn2-Jul-09 12:22 
GeneralRe: Grouping data in tabs Pin
spankyleo1233-Jul-09 7:58
spankyleo1233-Jul-09 7:58 
GeneralRe: Grouping data in tabs Pin
Luc Pattyn3-Jul-09 8:06
sitebuilderLuc Pattyn3-Jul-09 8:06 

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.