Path: utzoo!attcan!uunet!microsoft!jimad From: jimad@microsoft.UUCP (JAMES ADCOCK) Newsgroups: comp.lang.c++ Subject: Re: aggregate initializations Keywords: aggregates, initialization Message-ID: <10243@microsoft.UUCP> Date: 12 Jan 90 17:54:41 GMT References: <974@rna.UUCP> Reply-To: jimad@microsoft.UUCP (JAMES ADCOCK) Organization: Microsoft Corp., Redmond WA Lines: 20 I tried the general case you suggested -- init'ing a int array using a bunch of int f(int)'s -- and 2.0 complained it can't do that. Interestingly, the following *does* compile -- it just generates bad code: #include class INT { int i; public: INT(int ii) : i(ii) {} operator int() { return i; } }; main() { INT c[] = { INT(0), INT(1), INT(2) }; printf("%d\n",(int)c[0]); }