Click here to Skip to main content
15,923,576 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Return value or Exception or something else ? Pin
Mark Salsbery3-Nov-06 6:49
Mark Salsbery3-Nov-06 6:49 
AnswerRe: Return value or Exception or something else ? Pin
Jörgen Sigvardsson3-Nov-06 6:08
Jörgen Sigvardsson3-Nov-06 6:08 
GeneralRe: Return value or Exception or something else ? Pin
Mr.Brainley3-Nov-06 6:33
Mr.Brainley3-Nov-06 6:33 
AnswerRe: Return value or Exception or something else ? Pin
Jörgen Sigvardsson3-Nov-06 6:14
Jörgen Sigvardsson3-Nov-06 6:14 
GeneralRe: Return value or Exception or something else ? Pin
Mr.Brainley3-Nov-06 6:29
Mr.Brainley3-Nov-06 6:29 
GeneralRe: Return value or Exception or something else ? Pin
Jörgen Sigvardsson3-Nov-06 6:37
Jörgen Sigvardsson3-Nov-06 6:37 
GeneralRe: Return value or Exception or something else ? Pin
Mr.Brainley3-Nov-06 6:41
Mr.Brainley3-Nov-06 6:41 
GeneralRe: Return value or Exception or something else ? Pin
Zac Howland3-Nov-06 10:52
Zac Howland3-Nov-06 10:52 
Joergen Sigvardsson wrote:
Uhm.. that is a rather dull guideline. Just because some academic has decided that references are better than pointers (which the majority of the C++ community uses), it's counter productive NOT to use them in cases like this, as it would cut your development by at least an hour (seeing that you posted this approximately an hour ago).


Knowing how to use references increases code readability, maintainability, and decreases the liklihood of bugs being introduced via improper usage of pointers. In general, if you can get away with not using pointers, you should do so.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: Return value or Exception or something else ? Pin
Jörgen Sigvardsson3-Nov-06 11:39
Jörgen Sigvardsson3-Nov-06 11:39 
GeneralRe: Return value or Exception or something else ? Pin
Zac Howland3-Nov-06 17:11
Zac Howland3-Nov-06 17:11 
AnswerWhy not use a pointer ? Pin
Mr.Brainley3-Nov-06 6:23
Mr.Brainley3-Nov-06 6:23 
AnswerRe: Return value or Exception or something else ? Pin
Zac Howland3-Nov-06 8:53
Zac Howland3-Nov-06 8:53 
GeneralRe: Return value or Exception or something else ? Pin
Jörgen Sigvardsson3-Nov-06 9:15
Jörgen Sigvardsson3-Nov-06 9:15 
GeneralRe: Return value or Exception or something else ? Pin
Zac Howland3-Nov-06 9:43
Zac Howland3-Nov-06 9:43 
AnswerRe: Return value or Exception or something else ? Pin
Orhun Birsoy3-Nov-06 11:53
Orhun Birsoy3-Nov-06 11:53 
AnswerRe: Return value or Exception or something else ? Pin
Stephen Hewitt5-Nov-06 11:56
Stephen Hewitt5-Nov-06 11:56 
QuestionColor?? Pin
Larsson3-Nov-06 5:17
Larsson3-Nov-06 5:17 
AnswerRe: Color?? Pin
Waldermort3-Nov-06 5:25
Waldermort3-Nov-06 5:25 
GeneralRe: Color?? Pin
Larsson3-Nov-06 5:43
Larsson3-Nov-06 5:43 
GeneralRe: Color?? Pin
Waldermort3-Nov-06 5:49
Waldermort3-Nov-06 5:49 
GeneralRe: Color?? Pin
Larsson3-Nov-06 5:52
Larsson3-Nov-06 5:52 
GeneralRe: Color?? Pin
Hamid_RT3-Nov-06 6:23
Hamid_RT3-Nov-06 6:23 
QuestionPainting in windows Pin
Waldermort3-Nov-06 5:00
Waldermort3-Nov-06 5:00 
AnswerRe: Painting in windows Pin
Waldermort3-Nov-06 16:57
Waldermort3-Nov-06 16:57 
QuestionVS2005 app distribution Pin
Alex_Y3-Nov-06 4:13
Alex_Y3-Nov-06 4:13 

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.