public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Robert Dewar <dewar@adacore.com>
To: Rick Hodgin <foxmuldrster@yahoo.com>
Cc: gcc <gcc@gcc.gnu.org>
Subject: Re: Switch statement case range
Date: Sun, 08 Apr 2012 16:07:00 -0000	[thread overview]
Message-ID: <4F81B7AE.50805@adacore.com> (raw)
In-Reply-To: <1333900786.14645.YahooMailClassic@web125406.mail.ne1.yahoo.com>

On 4/8/2012 11:59 AM, Rick Hodgin wrote:
> What are the possibilities of adding a GCC extension to allow:
>
> switch (foo) {
> case 1:
> case 2:
> case 3 to 8:
> case 9:
> default:
> }
>
> in C/C++ case statements?
>
> Best regards,
> Rick C. Hodgin

I think there is very little enthusiasm these days for adding
non-standard extensions of this type.

      parent reply	other threads:[~2012-04-08 16:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-08 16:00 Rick Hodgin
2012-04-08 16:03 ` Gabriel Dos Reis
2012-04-08 16:05 ` Marek Polacek
2012-04-08 16:07   ` Rick Hodgin
2012-04-08 16:15     ` Oleg Endo
2012-04-08 16:23       ` Rick Hodgin
2012-04-12 23:26         ` Rick Hodgin
2012-04-13  8:29           ` Jonathan Wakely
2012-04-13 15:58             ` Rick Hodgin
2012-04-13 16:04               ` Jonathan Wakely
2012-04-08 16:07 ` Robert Dewar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F81B7AE.50805@adacore.com \
    --to=dewar@adacore.com \
    --cc=foxmuldrster@yahoo.com \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).