Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!ames!lll-tis!ptsfa!hoptoad!academ!uhnix1!sugar!peter From: peter@sugar.UUCP (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: goto's and switch statements -- mild proposal Message-ID: <615@sugar.UUCP> Date: Tue, 1-Sep-87 18:06:58 EDT Article-I.D.: sugar.615 Posted: Tue Sep 1 18:06:58 1987 Date-Received: Sat, 5-Sep-87 09:37:34 EDT References: <855@tjalk.cs.vu.nl> <2683@hoptoad.uucp> <916@haddock.ISC.COM> <867@mcgill-vision.UUCP> Organization: Sugar Land UNIX - Houston, TX Lines: 19 >> case a, b, c: >> Comma operator should be illegal in constant expressions. > But I want to have my macros expand properly even if I use a constant. That's exactly right. However, this isn't a problem any more than the case of using a comma operator in an argument list. i.e. foo(a,b,c); and case a, b, c: have the same problem if you #define a foo, bar but... you should be doing #define a (foo, bar) anyway, so where's the problem? -- -- Peter da Silva `-_-' ...!seismo!soma!uhnix1!sugar!peter -- U <--- not a copyrighted cartoon :->