On Sa, 2017-05-13 at 13:35 +0100, Tim Bradshaw wrote:
Are there languages that copy arrays in
function calls defaultly?
Yes, Pascal is an example. If you do *not* want
an argument to be copied, its corresponding
parameter name must be preceded by the keyword
"var". The "User Manual and Report" explicitly
warns about the inefficiency incurred when
calling functions with parameters of structured
types (arrays or records) without "var".
Hellwig