If I have the following:

arry = Array.makeVar[type](region, ((p):Point => new type());
finish foreach( i in dist ){
        ...loop... stuff
}

how does is change with the array creation inside the loop?

finish foreach( i in dist ){
        arry = Array.makeVar[type](region, ((p):Point => new type());
        ...loop... stuff
}


I'm concerned that Array arry is being shared among activities. How will this 
change with ateach in lieu of foreach? If I run the ateach version with the 
Java backend, is the Array truly unique to each place?

I have tried instantiating the array both inside and prior to the foreach loop 
and both seem to corrupt data compared with the plain "for" loop. My code has 
many arrays and I need to narrow down which one is apparently shared.

Thanks, 

Jim
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to