From: Erik V. <eri...@hc...> - 2005-04-26 20:48:11
|
> I hope so. > > The reason for not using static arrays is that they set an unnecessary > upper limit on the number of instances, which can fail when temporary > copies of a class object are created in situations such as copying a > class type (a = b) or when a function returns a value of that type. > Some compilers create these temporary copies when others > don't, so it's > simpler and better just to avoid having the limit. ??? This has nothing to do with an array (or list, or collection) being declared static. You only should not dimension it with a final static constant. That is why I do not use an array but an ArrayList, which has no predefined limit. Erik. |