Talking with Igor, it seems what you really want would be something like
this:
static def copyAndRunAt[T](A:Array[T], p:Place, f: (Array[T]{self.dist
== A.region->p})=>Void) {
val ACopy = ValRail.make(0.. A.region.size()-1, (i:int) =>
A(A.region.coord(i))); // convert to ValRail
at (p) {
val LocalA = Array.make[T](A.region -> p, (p:Point) =>
ACopy(A.region.ord(p))); // convert to local Array
f(LocalA);
}
}
Does this make sense..?
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users