Code review comment for lp:~smspillaz/compiz-core/compiz-core.fix_931927

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> Re: "Static initialisation initially zeros things out"
>
> Is that in the C++ spec? As far as I know, basic types like;
> unsigned short emptyColor[4];
> will not be initialized at all, because they don't have a constructor.

Local statics have a special case (don't you just love C++) - they are zero initialized (the same as namespace scope variables - which is what they are to the link loader).

« Back to merge proposal