Best practices question: Do you use the this keyword when using instance members in a method?
-
Gizzo: "But do you agree with me that is necesary to use some kind of notation? " fat_boy wrote: "No, I don't. My notation differentiates between pointers, non pointers, and between global, local and member variables. p for pointer, g for global, m for member and that is it." Forgive the doh: icon. I just wanted to point that your answer seemed to me a little bit contradictoriuos. Nothing more.
OK, fair point. The use of m gets forced on you by the MFC wizard, other than that I wouldnt use it. My only regularly notation is for pointers really. I find it helps building up casts such as:
*((PULONG)Irp->AssociatedIrp.SystemBuffer) = pAdapter->AutoConnect; *( ((PULONG)Irp->AssociatedIrp.SystemBuffer) + 1) = pAdapter->WaitForDCDgoing1;
Nunc est bibendum -
Chris Losinger wrote:
the smart people have decreed that we all need to use a different kind of notation now.
the smart people? and what did they decide it's better? I'm not been ironic, i just want to know.
Gizzo wrote:
the smart people?