Consensus on the kdelibs coding style

Thiago Macieira thiago at kde.org
Sun Jul 6 12:53:48 BST 2008


Alexander Neundorf wrote:
>On Sunday 06 July 2008, Alexander Neundorf wrote:
>> On Sunday 06 July 2008, Thiago Macieira wrote:
>> > Alexander Neundorf wrote:
>> > >IMO here the problem is a missing recommendation:
>> > >always use the order public - protected - private (with a note
>> > > about signals an slots), and never to rely on the default
>> > > protection in classes.
>> >
>> > So I should always add "public:" to simple structs? No, thanks.
>>
>> Please not the "classes" in the sentence above :-)
>
>Should have been "note"

Right, but they are the same thing. The only difference is the default 
access level. GCC even forgets which one you used and it always reports 
the error in "struct".

But this is nitpicking...
-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080706/41feb44c/attachment.sig>


More information about the kde-core-devel mailing list