Question: Curious about programming

This question is related to the Question array of vectors physics

On another topic, I was curious about programming style in Maple.

If I declare these large matrices as local outside my procedures, can I pass them in as arguments by reference (like C++)?  Or should I just make them global?  What is the typically protocol here?

I am a little confused with exactly how arguments are passed into procedures.  More specifically, I am unsure what conditions determine whether or not a variable passed into a procedure is modified.  In C++, I could just choose to pass something by reference, value, or as a pointer.   What are the analagous features in Maple?

Please Wait...