|
|
|
|
|
by flaghacker
801 days ago
|
|
Matlab is one language that chooses the second. Every assignment a=b where b is a matrix creates a distinct copy of the matrix. The interpreter is slightly more clever and instead implements this as a copy-on-writr mechanism, but that's just an implementation detail . |
|