Hi Rodrique,

the individual components of a Point can be accessed in a similar manner to array elements, i.e.

val a:Point(2);
val x = a(0);
val y = a(1);

This array-like syntax can be used on any class/struct that implements the assignment or application operators. For more information see section 8.7.5 of the language spec.

Cheers,

Josh

On 30/05/12 07:53, Rodrique Djonkou wrote:
Dear,

Please I didn't succeed to use the method coords() of the class Point.

in fact; for a point (5, 2, 3) per example, I want to obtain the separately the value 5, 2 and 3 of this point.

Thanks for your usual support

Rodrique


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to