johnston@odin.ADS.COM (Scott E. Johnston) (01/20/90)
Is it possible to directly declare an array of classes that are immediately initialized by a constructor with arguments? If not, why so? I am aware of ways to get around the problem -- my question is if it can be done directly instead. Syntaxes I have tried, and error messages generated by AT&T 2.0: a_class a1[10] (33.4); // error: argument has no type // error: array of functions a_class a1(33.4) [10]; // internal <<AT&T C++ Translator 2.00 06/30/89>> // error: bus error (or something nasty like that) ------------------------------------------------------------------------ Scott E. Johnston johnston@ads.com 1500 Plymouth St. (415) 960-7300 Mt. View, CA 94043