Re: astyle issues

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 22 Feb 2003 16:12:50 +0100

Robert Collins wrote:

> > Should read:
> >
> > struct
> > {
> > [...]
> > } Wais;
>
> I don't think this is a biggy: as we get more OOP, anonymous structs
> will dissappear almost completely.

Not completely I think. Using anonymous structs is quite handy for
grouping related members.

Here is a example of a quite recently OOP class:

class ACLUserData : public ACLData<char const *>
{
    [...]
    SplayNode<char *> *names;

    struct
    {

unsigned int case_insensitive:
        1;

unsigned int required:
        1;
    }

    flags;

private:
    static MemPool *Pool;
};

We could rewrite this to drop any internal grouping of members within
classes, but I prefer not.

Regards
Henrik
Received on Sat Feb 22 2003 - 08:26:50 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:17 MST