12 Dec
2011
12 Dec
'11
9:13 p.m.
Masklinn wrote:
Of course technically that copy could very well be performed "on write". This would significantly complexify the runtime as well.
It could also lead to a lot of gratuitous inefficiency in programs, as people got into the habit of modifying anything passed to them in the knowledge that it wouldn't do any harm, but without considering the cost of all the implicit copying that it caused. -- Greg