For structs you do not need to use "new".
Simply write:
val x = Pair[Int,Int](3,4);

We have a proposal that would allow also using "new" for creating a struct
(which will be more comfortable for Java users).

Thanks,
Yoav
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to