I have an old X10 example in class which I'm trying to compile.
import x10.array.Array;
import x10.io.Console;
...
public static def main(args: Array[String](1)) {
val regionTest = 1..12;
val testArray = new Array[Int](1..12, (Point)=>0);
for ([i] in testArray) {
testArray(i) = i;
Console.OUT.println("testArray("+i+") = " + testArray(i));
}
}
Unfortunately it seems to be outdated. I could figure out by myself that you have to write public static def main(args:Rail[String])
now. The definition of val regionTest = 1..12
seems to be ok. The syntax for the array must be wrong, all following lines maybe too. I tried to fix this with this guide, but did not succeed.
My setup is working, the initial class in a new X10 Eclipse IDE project runs.
Could somebody help me port this to version 2.5.x?