Path: utzoo!mnetor!uunet!husc6!rutgers!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: Pragmas Message-ID: <1766@bsu-cs.UUCP> Date: 2 Jan 88 19:26:29 GMT References: <8801021358.AA15890@decwrl.dec.com> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 18 In article <8801021358.AA15890@decwrl.dec.com> minow@thundr.dec.com (Martin Minow THUNDR::MINOW ML3-5/U26 223-9922) writes: >According to the Draft Standard, unknown pragmas are to be ignored >(section 3.8.6 of the Aug. '87 draft). Because it doesn't distinguish >mistakes from typographical errors, this is a mistake, and one that the >Committee seems inordinately fond of: they rejected my request to >flag unknown pragmas as errors. Agreed. What we really need is a pragma that tells the compiler to ignore unrecognizes pragmas, and the default should be to flag unrecognized pragmas as errors. Unfortunately, it has been traditional (e.g. Pascal and Ada) for compilers to ignore unrecognized pragmas so ANSI is simply following well-trodden footsteps. This may not get fixed until a missile is actually lost in space due to a misspelled pragma. -- Rahul Dhesi UUCP: !{iuvax,pur-ee,uunet}!bsu-cs!dhesi