Hi,
I have another question regarding X10 array. I tried to modify a local array
from remote place using following code. I noticed that there's some
computation running, but the content of array was never changed.
at(here.next())
at(here)
{
for(p in src_array)
{
src_array(p) = 10000;
}
}
for(p in src_array)
Console.OUT.println(src_array(p));
However, the following code seems to be working, although it is highly
inefficient.
at(here.next())
for(p in src_array)
{
var x : int = 0;
at(here)
{
x = 10000;
}
src_array(p) = x;
}
I looked at the X10 programming manual and it says it will implicitly copy
an object to another place if that object is used within 'at' clause.
However, I don't understand why above behavior happens. Can anybody tell me
the reason?
Thanks,
Kirak
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users