The following code works with X10 2.1.0, but cannot be compiled with the 
latest HEAD.
It seems that Dist.places() returns Sequence[Place] in 2.1.0 but returns 
PlaceGroup in HEAD.

public class PlaceTest {
    public static def main(Array[String]){
        val places = Dist.makeUnique().places();
        Console.OUT.println(places.size);
    }
}

$ x10c++ PlaceTest.x10
x10c++: PlaceTest.cc: In static member function 'static void 
PlaceTest::main(x10aux::ref<x10::array::Array<x10aux::ref<x10::lang::String> 
> >)':
     PlaceTest.cc:19: error: 'class x10::array::PlaceGroup' has no member 
named 'x10__size'
x10c++: Non-zero return code: 1
2 errors.


However, PlaceGroup implements Sequence[Place], and Sequence has a 
property size.
Why the above code fails to compile?

Kiyokuni (KIYO) Kawachiya, Ph.D. / IBM Research - Tokyo


------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to