by Ian Collins <ian-news@[EMAIL PROTECTED]
>
Apr 21, 2008 at 04:02 PM
Barry Schwarz wrote:
> On Sun, 20 Apr 2008 15:03:24 -0700 (PDT), Sard <Sardaukary@[EMAIL PROTECTED]
>
> wrote:
>
>> I've just discovered that this is legal in c++.
>>
>> int x={10};
>>
>> What's the point of allowing this? Is it just to be consistent with
>> the initialisation of structs and arrays?
>
> What is the point of disallowing it and forcing compiler writers to do
> the additional checking?
>
>> Are these 3 all equivalent then?
>>
>> int x(10);
>
> This is a syntax error.
>
Not in C++.
--
Ian Collins.