Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Francis Glassborow<francis.glassborow@btinternet.com> |
| Newsgroups | comp.std.c++ |
| Subject | Re: New strongly type enum proposal featuring inherited enums |
| Date | Wed, 24 Aug 2011 14:52:05 -0700 (PDT) |
| Organization | albasani.net |
| Lines | 37 |
| Sender | std-cpp-request@vandevoorde.com |
| Approved | stephen.clamage@oracle.com |
| Message-ID | <tdWdnShmRNgsH9DTnZ2dnUVZ8qidnZ2d@bt.com> (permalink) |
| References | <4e49ea26$2@news.x-privat.org> <2011081706332351646-pete@versatilecodingcom> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| X-Trace | news.albasani.net 944GrERmDFNHO1UoCQT53cy9mEh1lENUnkVTXdvmgLLQsYF2dMqMwfQBSx36yPrC5GNBouTvXT4y7yfTxt01DQ== |
| NNTP-Posting-Date | Wed, 24 Aug 2011 21:52:07 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="hbW6yheQzIQt4/Reup+0EiyE4xKyHJfcuDVP+BjZlHPfn9eb4z63wA1GrOv7HVs5NPn1MkVQ5kqUO4ZvQM7RoHHwsdKNyJQC8Mnc9na9IEeYEc6MZT61MUfvueJeohT2"; mail-complaints-to="abuse@albasani.net" |
| X-Mailer | Perl5 Mail::Internet v2.05 |
| X-Submission-Address | std-cpp-submit@vandevoorde.com |
| Cancel-Lock | sha1:iroyiwXsKViCwl4wSGiSsW64308= |
| X-Original-Date | Thu, 18 Aug 2011 22:22:39 +0100 |
| Xref | x330-a1.tempe.blueboxinc.net comp.std.c++:247 |
Show key headers only | View raw
On 18/08/2011 14:51, Pete Becker wrote:
>
> On 2011-08-16 21:28:17 +0000, Phil Bouchard said:
>
>> Hi,
>>
>> Is it too late to change the strongly type enum?
>
> Yes, C++11 has been unanimously approved. It will be an official
> standard in a few weeks.
>
> No, work is just starting on the next version of the C++ standard.
>
>> I have a proposal
>> that is much cleaner than what is on its way.
>>
>> Right now we have:
>> enum class Val: unsigned long { E1, E2, E3, E4 };
>>
>> Comments:
>> 1) This design is bad because the ':' sign is reserved for inheritance.
>
> Really? Where does the standard say that it's "reserved"?<g>
>
> It's currently used to indicate inheritance, to separate two
> expressions in a ternary operator, and to mark the size of a bitfield.
>
and for a case in a switch statement, and for a label (long time since I
used one of those but I tend to not use goto :)
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
New strongly type enum proposal featuring inherited enums Phil Bouchard <philippe@fornux.com> - 2011-08-16 21:28 -0600
Re: New strongly type enum proposal featuring inherited enums Daniel Krügler <daniel.kruegler@googlemail.com> - 2011-08-18 07:54 -0600
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard<philippe@fornux.com> - 2011-08-24 14:06 -0700
Re: New strongly type enum proposal featuring inherited enums Daniel Krügler<daniel.kruegler@googlemail.com> - 2011-08-24 17:39 -0700
Re: New strongly type enum proposal featuring inherited enums Bart van Ingen Schenau<bart@ingen.ddns.info> - 2011-08-25 20:51 -0600
Re: New strongly type enum proposal featuring inherited enums =3D?ISO-8859-15?Q?Daniel_Kr=3DFCgler?=3D <daniel.kruegler@googlemail.= com> - 2011-09-07 11:08 -0700
Re: New strongly type enum proposal featuring inherited enums Miles Bader <miles@gnu.org> - 2011-09-08 14:46 -0700
Re: New strongly type enum... why not use "using"? "peter miller"<fuchsia.groan@virgin.net> - 2011-09-12 11:18 -0700
Re: New strongly type enum... why not use "using"? Miles Bader<miles@gnu.org> - 2011-09-13 09:29 -0700
Re: New strongly type enum... why not use "using"? "peter miller"<fuchsia.groan@virgin.net> - 2011-09-15 14:13 -0700
Re: New strongly type enum proposal featuring inherited enums Pete Becker <pete@versatilecoding.com> - 2011-08-18 07:51 -0600
Re: New strongly type enum proposal featuring inherited enums Victor Bazarov<v.bazarov@comcast.invalid> - 2011-08-24 14:06 -0700
Re: New strongly type enum proposal featuring inherited enums Paavo Helde<myfirstname@osa.pri.ee> - 2011-08-24 14:06 -0700
Re: New strongly type enum proposal featuring inherited enums Francis Glassborow<francis.glassborow@btinternet.com> - 2011-08-24 14:52 -0700
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard<philippe@fornux.com> - 2011-08-24 17:39 -0700
Re: New strongly type enum proposal featuring inherited enums Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2011-08-18 07:53 -0600
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard<philippe@fornux.com> - 2011-08-24 14:52 -0700
Re: New strongly type enum proposal featuring inherited enums Marcel Müller <news.5.maazl@spamgourmet.com> - 2011-08-18 07:52 -0600
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard<philippe@fornux.com> - 2011-08-23 18:20 -0700
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard <philippe@fornux.com> - 2011-08-24 14:52 -0700
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard <philippe@fornux.com> - 2011-08-24 14:52 -0700
Re: New strongly type enum proposal featuring inherited enums Francis Glassborow<francis.glassborow@btinternet.com> - 2011-08-24 14:06 -0700
Re: New strongly type enum proposal featuring inherited enums "Bo Persson"<bop@gmb.dk> - 2011-08-24 14:06 -0700
Re: New strongly type enum proposal featuring inherited enums red floyd<no.spam.here@its.invalid> - 2011-08-24 14:06 -0700
Re: New strongly type enum proposal featuring inherited enums Seungbeom Kim<musiphil@bawi.org> - 2011-08-24 14:06 -0700
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard<philippe@fornux.com> - 2011-08-24 17:39 -0700
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard<philippe@fornux.com> - 2011-08-24 17:40 -0700
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard<philippe@fornux.com> - 2011-08-24 17:40 -0700
csiph-web