
9 Feb
2006
9 Feb
'06
10:53 p.m.
Johan Johansson wrote:
That sounds like a local convention to me. Actually it sounds like something a C programmer would think to me. Why pass anything by pointer unless you have to?
I think Bjarne Stroustrup expressed this sentiment once, although I personally disagree. The reason is simple: call-by-reference and call-by-value have no visible difference at the call site, which could therefore make changes to the arguments unexpected. Sebastian Redl