You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is now possible to pass parts of an array by reference. For example, the following
4
+
5
+
`on mouseUp
6
+
local tArray
7
+
put "" into tArray[1][2]
8
+
passByRef tArray[1]
9
+
put tArray[1][2]
10
+
end mouseUp
11
+
12
+
on passByRef @rArray
13
+
put "changed" into rArray[2]
14
+
end passByRef`
15
+
16
+
in the script of a button will result in "changed" appearing in the message box when the button is pressed.
17
+
18
+
This allows users to reduce the overhead associated with passing sub-arrays to handlers, as this would no longer require copying the sub-array internally.
0 commit comments