Showing posts with label return by value. Show all posts
Showing posts with label return by value. Show all posts

Jan 17, 2009

when implementing a +operation "string + (string)". how would you return the return value, by ref or by val.

when implementing a +operation "string + (string)". how would you return the return value, by ref or by val.
Return by value. (never return the reference to a local variable)