책을 보다가 이런 문구가 있네요.

in Mel, arrays are passed "by reference" into procedures, which means they're not copied. You can clear the array and fill it up again from within the procedure. This is faster than returning the array from the proc, which would cause a copy of all the elements to be made.

Since arrays are passed by reference, if you pass an array as an argument to procedure and modify that argument within the procedure, the array will hanve the modified values upon return from the procedure call.

All other data types(e.g., string, int, float) are passed "by value".

You can compare this with how Maya works with references in which geometry or aniamtion data is not copied to the actual scene, but read from a remote location on disk.

 

즉, procedure에 인자로써, array를 사용하는 경우와 array를 사용하지 않는 경우의 차이를 설명하는 것 같은 데, 보다 자세한 설명 부탁드릴께요???

 

또한, 이런 문구가 있네요.

Another example is pointers in C++, which allow you to pass the address of a (potentially large) object in memory around, instead of the object itself.

이 부분도 설명 부탁드릴께요?????