9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] C compiler error?
Date: Tue, 13 Dec 2011 18:01:43 -0500	[thread overview]
Message-ID: <CADSkJJUxqP8fduF+rhK4sM60wF8rGuVdyR6Bf9X2OYadmE_VoQ@mail.gmail.com> (raw)
In-Reply-To: <CAOw7k5gwWt+TN78qMBq_HX9BG+O_TS3K1jqPpnORNJh5OVbTRg@mail.gmail.com>

On Tue, Dec 13, 2011 at 5:38 PM, Charles Forsyth
<charles.forsyth@gmail.com> wrote:
> it's reasonable to use any integer type in a switch, although the compilers
> don't currently support it.
> it's compatible with the standard, which allows any integer type. i'd cancel
> the change request and work round it (add a cast) until
> the compilers can be changed to support it.

http://codereview.appspot.com/5485063/ is a step toward it.
it doesn't generate the prettiest code but i think it works.

russ


  reply	other threads:[~2011-12-13 23:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 12:42 Lucio De Re
2011-12-13 13:36 ` erik quanstrom
2011-12-13 13:52   ` Noah Evans
     [not found]   ` <CAJVRB2XJ2KOC1sGd+Tb3a-3ZL7Jan9OEKH+oEWWTnutQ3M-cxg@mail.gmail.c>
2011-12-13 13:55     ` erik quanstrom
2011-12-13 14:07       ` yy
2011-12-13 22:38         ` Charles Forsyth
2011-12-13 23:01           ` Russ Cox [this message]
2011-12-14  4:05             ` Lucio De Re
2011-12-14  4:08               ` Lucio De Re
2011-12-14  4:19               ` Russ Cox
2011-12-14  9:20                 ` Charles Forsyth
2011-12-14 10:10                   ` Anthony Martin
2011-12-14 10:29                     ` Charles Forsyth
2011-12-14 10:34                       ` Charles Forsyth
2011-12-15  2:59                       ` Anthony Martin
2011-12-15  9:02                         ` Charles Forsyth
2011-12-13 13:57 ` Anthony Martin

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=CADSkJJUxqP8fduF+rhK4sM60wF8rGuVdyR6Bf9X2OYadmE_VoQ@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /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 NNTP newsgroup(s).