Re: [Cppunit-devel] A new architecture ?
Brought to you by:
blep
From: Bastiaan B. <bas...@li...> - 2001-10-22 20:51:39
|
Duane Murphy wrote: >--8<--- >(3) Use of references. While pointers are evil, references are your >friend. Const references are your best friend. They take up minimum >space, they have maximum reliability (they cant be NULL), you cant modify > Hmm, AFAIK references take as much space as pointers. I suspect most compilers translate references and pointers to the same code. They certainly CAN be *NULL (and you'll segfault if you try to use them). Personally I find having both pointers and references a not so elegant feature of C++. But I must confess to have built up a distaste for many C++ 'features' over the years and to prefer the simplicity of Java. Regards, Bastiaan Bakker |