From: Guillaume L. <gla...@te...> - 2002-01-26 08:50:45
|
On Saturday 26 January 2002 09:13, Chris Cannam wrote: > > Wasn't he saying that he didn't _need_ to know what it was? Yes, but I'm saying that he actually needs to. Systematically using const& for passing as argument helps only for that, how to pass the object to a method. You still have to know the object's semantics for everything else (creation, deletion, affectation, equality testing, etc...). So given that you can't really do much with a C++ object without knowing how it works, you might as well use that knowledge to pass it the right way to methods. -- Guillaume. http://www.telegraph-road.org |