Kiyokuni Kawachiya <kawat...@jp.ibm.com> wrote on 01/09/2011 11:33:33 AM:
> 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? Hi, This seems to be an instance of http://jira.codehaus.org/browse/XTENLANG-945 (though in this case it fails for both backends). There are two problems: (1) the compiler is not recognizing the interface property as something that requires an implementation -- I'm working on a fix for this, and (2) the code in PlaceGroup.x10 is actually invalid -- we need to figure out how to fix this properly. Please watch the above JIRA issue for progress on this. Igor -- Igor Peshansky (note the spelling change!) IBM T.J. Watson Research Center X10: Parallel Productivity and Performance (http://x10-lang.org/) XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/) "I hear and I forget. I see and I remember. I do and I understand" -- Xun Zi ------------------------------------------------------------------------------ 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