Path: utzoo!attcan!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c Subject: Re: Using Macros Message-ID: <389@taumet.com> Date: 8 Aug 90 15:27:14 GMT References: <14363@shlump.nac.dec.com> Organization: Taumetric Corporation, San Diego Lines: 28 farrell@onedge.enet.dec.com (Bernard Farrell) writes: |In article <10836@crdgw1.crd.ge.com>, volpe@underdog.crd.ge.com (Christopher R Volpe) writes... | if (blah) | { | stmt1; | stmt2; | }; |> |>Can someone with a copy of the Standard tell us if a semicolon is |>allowed? ... |... I believe K&R (n) was probably placating Pascal converts, and meant |no semicolon necessary. The problem comes when you attach an "else" clause: if (blah) { ... }; else { ... } The semicolon is illegal there (or the "else" is illegal, take your pick). And of course, following the closing brace of a function with a semicolon is illegal (in ANSI C). -- Steve Clamage, TauMetric Corp, steve@taumet.com