Richard Gomes <rgomes1...@yahoo.co.uk> wrote on 10/24/2010 05:46:25 PM: > > Any special reason for declaring x10.array.Array final? > > Looking at x10.array.DistArray, which is not final, I confirm my > 'felling' that Array should not be final. >
The motivation is performance. We want all of the methods of Array to be statically bound so they can be inlined when appropriate. We could also do that by making the class non-final, but making virtually all of the methods final. But making the class final seems more appropriate, since for performance we'd make enough of Array's methods final if the class wasn't final that it would be hard to subclass it effectively. For DistArray, we are still experimenting with different possible designs to balance flexibility and performance. --dave ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users