Click here to Skip to main content
15,849,129 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Pointers and brain drain Pin
harold aptroot18-Jun-22 3:38
harold aptroot18-Jun-22 3:38 
AnswerRe: Pointers and brain drain Pin
Richard MacCutchan18-Jun-22 3:41
mveRichard MacCutchan18-Jun-22 3:41 
AnswerRe: Pointers and brain drain Pin
Greg Utas18-Jun-22 3:51
professionalGreg Utas18-Jun-22 3:51 
AnswerRe: Pointers and brain drain Pin
David O'Neil18-Jun-22 4:24
professionalDavid O'Neil18-Jun-22 4:24 
GeneralRe: Pointers and brain drain Pin
Mircea Neacsu18-Jun-22 6:04
Mircea Neacsu18-Jun-22 6:04 
AnswerRe: Pointers and brain drain Pin
Gerry Schmitz18-Jun-22 5:32
mveGerry Schmitz18-Jun-22 5:32 
AnswerRe: Pointers and brain drain Pin
jmaida18-Jun-22 5:57
jmaida18-Jun-22 5:57 
AnswerRe: Pointers and brain drain Pin
Greg Utas18-Jun-22 5:57
professionalGreg Utas18-Jun-22 5:57 
Gerry mentioned C# having references instead of pointers. In C++, I have to think about references more carefully than pointers! Not when passing arguments by reference, but when local variables are involved. I use auto extensively, and thoughtlessly writing auto local = rhs copies an object when auto& would be appropriate.

I also have code like this:
C++
void f(Class& arg)
{
   if(&arg == nullptr) throw grenade;
   ...
}
So I get helpful compiler hints saying that &arg can't be nullptr in well-formed C++. True, but it certainly can in buggy C++!
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

QuestionRe: Pointers and brain drain Pin
Eddy Vluggen18-Jun-22 12:30
professionalEddy Vluggen18-Jun-22 12:30 
AnswerRe: Pointers and brain drain Pin
honey the codewitch18-Jun-22 12:35
mvahoney the codewitch18-Jun-22 12:35 
GeneralRe: Pointers and brain drain Pin
Eddy Vluggen18-Jun-22 13:06
professionalEddy Vluggen18-Jun-22 13:06 
GeneralRe: Pointers and brain drain Pin
honey the codewitch18-Jun-22 13:10
mvahoney the codewitch18-Jun-22 13:10 
GeneralRe: Pointers and brain drain Pin
Eddy Vluggen18-Jun-22 13:33
professionalEddy Vluggen18-Jun-22 13:33 
GeneralRe: Pointers and brain drain Pin
Greg Utas18-Jun-22 13:56
professionalGreg Utas18-Jun-22 13:56 
GeneralRe: Pointers and brain drain Pin
honey the codewitch18-Jun-22 18:03
mvahoney the codewitch18-Jun-22 18:03 
GeneralRe: Pointers and brain drain Pin
jmaida18-Jun-22 19:05
jmaida18-Jun-22 19:05 
GeneralRe: Pointers and brain drain Pin
jmaida18-Jun-22 19:12
jmaida18-Jun-22 19:12 
GeneralRe: Pointers and brain drain Pin
honey the codewitch18-Jun-22 20:09
mvahoney the codewitch18-Jun-22 20:09 
AnswerRe: Pointers and brain drain Pin
jmaida18-Jun-22 12:38
jmaida18-Jun-22 12:38 
QuestionRe: Pointers and brain drain Pin
Eddy Vluggen18-Jun-22 13:28
professionalEddy Vluggen18-Jun-22 13:28 
AnswerRe: Pointers and brain drain Pin
jmaida18-Jun-22 14:37
jmaida18-Jun-22 14:37 
QuestionRe: Pointers and brain drain Pin
Eddy Vluggen18-Jun-22 15:39
professionalEddy Vluggen18-Jun-22 15:39 
AnswerRe: Pointers and brain drain Pin
jmaida18-Jun-22 15:50
jmaida18-Jun-22 15:50 
AnswerRe: Pointers and brain drain Pin
Southmountain18-Jun-22 14:06
Southmountain18-Jun-22 14:06 
AnswerRe: Pointers and brain drain Pin
Ravi Bhavnani18-Jun-22 15:21
professionalRavi Bhavnani18-Jun-22 15:21 

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.