this code
function f(arr)
{
arr[0]=11;
arr[1]=12;
arr[2]=13;
}
function test()
{
var x = [1,2,3];
SYS.println(x);
f(x);
SYS.println(x);
}
produces in console:
[1, 2, 3]
[11, 12, 13]
It means that f modified external var x. Is it by design or bug?
sdk 4.1b, 4.0.6, 4.0.5...
eclipse CIQ plug in: 4.1.0.beta1
eclipse ver: 2021-09 (4.21.0) Build id: 20210910-1417
windows 10
minSdkVersion 2.4.0
java jre1.8.0_311