Is there a way to create a Rail whose type is java.lang.Comparable (which 
is an interface), as in

import java.lang.Comparable;
...
val myRail: Rail[Comparable]; 

where I don't know what the actual class of the instances passed in from 
Java code for myRail to hold will be, but I also don't care because all I 
want is to be able to use the compareTo() method? 


Thanks,
Judah Diament
IBM T.J. Watson Research Center
P.O. Box 704 Yorktown Heights, NY 10598, USA
914-784-7813 (TL: 863)

"Successful innovators use both the right and left sides of their brains. 
They look at figures. They look at people. They work out analytically what 
the innovation has to be to satisfy an opportunity. Then they go out and 
look at potential users to study their expectations, their values, and 
their needs."
-Peter F. Drucker
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to