stgructure initialization stype shows as error

Kishore kitts.mailinglists at gmail.com
Fri Aug 29 05:25:57 UTC 2008


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.
-- 
Cheers!
Kishore




More information about the KDevelop-devel mailing list