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

Reply via email to