This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/5581: Feaure request for GNU extension to find number of elems in an enum


Synopsis: Feaure request for GNU extension to find number of elems in an enum

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Tue Feb  5 02:23:31 2002
State-Changed-Why:
    The normal idiom for what you want is
    enum {red, green, num_elems};
    BTW, how many elements do you consider there are in
    enum {red, green =-2, blue, pink};
    ?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5581


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]