View Single Post
  #4 (permalink)  
Old 07-15-2005
marc's Avatar
marc marc is online now
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Ok, I see what you mean. I thought you were talking about Ice internals. You are right, for this specific case, you would save one call to a copy constructor if you would use an out parameter instead of a return value. However, this is not really something specific to Ice, but applies to C++ in general. For example, if you use the Java mapping, there is no difference.

For this specific case, I believe that a clean interface is more important than a performance gain that might hardly be measurable.
Reply With Quote