On 12/8/2010 2:09 PM, Kirak Hong wrote: > Thanks, all your suggestions work great! > One more trivial question : > > I found that my attempt to use "<:" to define a member variable doesn't > work. For example, > > val pixel_stat<:Array[Int]; > > .... > def this() > { > pixel_stat = new Array[Int](3); > } > > would make X10 compiler to complain about time inferencing. Is this because > I can only use "<:" when definition and instantiation happens at the same > time? > Correct. You must supply the initializer so the compiler can infer the type from it, then it checks that the supplied type is consistent with the type it has inferred.
> Thanks ------------------------------------------------------------------------------ This SF Dev2Dev email is sponsored by: WikiLeaks The End of the Free Internet http://p.sf.net/sfu/therealnews-com _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users