On 13 May 2017 13:35 +0100, from tfb at tfeb.org (Tim Bradshaw): > Are there languages that copy arrays in function calls defaultly? > Perhaps Fortran has some convention that allows that but I doubt it > gets used very much, because it would be insane in most cases: > COMPUTE_MEAN_TEMPERATURE(ATMOS) is really *not* going to work very > well if it involves copying the ATMOS array. I'm not completely sure about arrays, but at least Java has pass by reference in some cases where you might expect pass by value. IIRC function return values is a prime example. -- Michael Kjörling • https://michael.kjorling.se • michael at kjorling.se “People who think they know everything really annoy those of us who know we don’t.” (Bjarne Stroustrup)