In der Hilfe für "Func"
ZitatEntire arrays can be passed to functions (and returned from them) by simply using the array name without any brackets. Arrays should be passed to user-defined functions using the ByRef keyword to avoid the overhead of copying all the data in the array. Note that AutoIt only copies an array parameter if the contents are changed, so it is only in this case that ByRef offers an advantage, although it is recommended that to use it in all cases.
Ich glaube aber, mich erinnern zu können, dass dies nicht nur für Arrays gilt. War vor ewigen Zeiten mal eine Diskussion im engl. Forum.