Hello,
val arr = new Array[Int](1);
arr(0) = 0;
val remArr = new RemoteArray(arr);
Console.OUT.println(remArr(0));
val glob = GlobalRef(remArr);
val home = here;
for(p in Place.places()) {
if(p != home) {
at (p) {
arr(0) = 1;
Console.OUT.println(arr(0));
finish Array.asyncCopy(arr, at(glob.home()) glob.apply());
}
break;
}
}
Console.OUT.println(remArr(0));
Is the syntax above the one you were looking for? I expected the last println to print 1 but it prints 0. Could you please tell me where I went wrong.