Re: switch statement generation

ok@cs.rmit.oz.au (Richard A. O'Keefe)
Wed, 13 Apr 1994 06:33:16 GMT

          From comp.compilers

Related articles
switch statement generation dgaudet@undergrad.math.uwaterloo.ca (1994-04-06)
Re: switch statement generation mps@dent.uchicago.edu (1994-04-07)
switch statement generation dgaudet@undergrad.math.uwaterloo.ca (1994-04-07)
Re: switch statement generation henry@zoo.toronto.edu (1994-04-10)
Re: switch statement generation ch+@cs.cmu.edu (1994-04-11)
Re: switch statement generation ok@cs.rmit.oz.au (1994-04-13)
Re: switch statement generation ltd@netcom.com (1994-04-14)
Re: switch statement generation chase@Think.COM (1994-04-15)
| List of all articles for this month |
Newsgroups: comp.compilers
From: ok@cs.rmit.oz.au (Richard A. O'Keefe)
Keywords: code, optimize
Organization: Comp Sci, RMIT, Melbourne, Australia
References: 94-04-031 94-04-038
Date: Wed, 13 Apr 1994 06:33:16 GMT

mps@dent.uchicago.edu (Michael Spertus) writes:


>Switch statement suggestion.
>I would like to see the keyword nodefault: added to switch statements.


We don't _need_ another keyword. The construction
default: abort();
will suffice. If you want to
#define NODEFAULT ;default: abort();
then go ahead.
...
--
Richard A. O'Keefe; ok@goanna.cs.rmit.oz.au; RMIT, Melbourne, Australia.
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.