stgructure initialization stype shows as error
Hamish Rodda
rodda at kde.org
Fri Aug 29 06:59:14 UTC 2008
Hi,
On Friday 29 August 2008 15:25:57 Kishore wrote:
> In C, structures can be initialized by either having comma separated values
> or by using member names as is shown below. Using the second method, shows
> a red error mark with kdevelop.
>
> struct SomeStruct
> {
> int a;
> int b;
> };
>
> struct SomeStruct someStruct =
> {
> a: 10, //<-- : on this line is marked in red
> b: 20
> };
>
> The above code is valid code but is not considered so by kdevelop.
Is this the same for c++? (we don't officially support C yet)
Cheers,
Hamish.
More information about the KDevelop-devel
mailing list