9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] C99 and you
Date: Fri,  6 Oct 2006 09:28:01 +0100	[thread overview]
Message-ID: <7fca3123c4179206ee5199a80f182378@terzarima.net> (raw)
In-Reply-To: <775b8d190610051709g5f9a66f5tc9c387315bc94d86@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

based on the grammar snippet posted earlier, it looks as though
the compiler is correct.  a case label in C is not so different from a label
(thus duff's device is allowed), and as i understood the snippet,
declarations can't be labelled.  might make you wonder why they
bothered, and indeed, i do wonder.  i think they should leave the language alone.
(and if they were going to do more than tinker,
they might have added something significant, such as tuples.)

[-- Attachment #2: Type: message/rfc822, Size: 3269 bytes --]

From: "Bruce Ellis" <bruce.ellis@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] C99 and you
Date: Fri, 6 Oct 2006 10:09:20 +1000
Message-ID: <775b8d190610051709g5f9a66f5tc9c387315bc94d86@mail.gmail.com>

if that is the case i would suggest the grammar (yacc file) needs
a tweak - could be as simple as a missing case (or two).
good catch.

brucee

On 10/6/06, Skip Tavakkolian <9nut@9netics.com> wrote:
> somebody had a question a couple of days ago.  i wonder if the declaration
> was inside a switch or after a label?

etc.

  parent reply	other threads:[~2006-10-06  8:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-05 18:32 Skip Tavakkolian
2006-10-06  0:09 ` Bruce Ellis
2006-10-06  1:33   ` Skip Tavakkolian
2006-10-06  8:28   ` Charles Forsyth [this message]
2006-10-06  9:51     ` erik quanstrom
2006-10-06 16:00       ` Bruce Ellis

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=7fca3123c4179206ee5199a80f182378@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@cse.psu.edu \
    /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).