Re: [Cppunit-devel] A new architecture ?
Brought to you by:
blep
From: Duane M. <dua...@ma...> - 2001-10-22 21:48:38
|
--- At Mon, 22 Oct 2001 14:23:32 -0700, Duane Murphy wrote: >There are places for pointers and places for references. If I can use >references I will. If not I try and use counted pointers. I prefer >automated memory management to relying on my own poor faculties. > I should point out another rule of thumb that I use is that references should be const and pointers non-const (except for strange things like const char* :-). I try and hint at modification. If the paramater is a pointer and it is non-const likely it will be modified by the function. Clearly const references are not modifiable parameters. I believe that the standard also attempts to follow this rule of thumb. ..Duane p.s. I am concerned that this will turn into some kind of C++ debate. I was just bringing up some things that I saw that dont fit the way that I have learned to do things. We should move forward and focus on CppUnit and attempt to avoid tangential debates. My apologies. |