Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c++ Subject: Re: Can you prototype main() ????? Message-ID: <461@taumet.com> Date: 21 Sep 90 15:50:41 GMT References: <24447@uflorida.cis.ufl.EDU> <59517@bbn.BBN.COM> <6932@darkstar.ucsc.edu> <1668@lupine.NCD.COM> Organization: Taumetric Corporation, San Diego Lines: 16 rfg@NCD.COM (Ron Guilmette) writes: > void foobar (int irritating) > { > int irritating; > } >Put that in your C++ compiler! Then look for this in chapter 18. It ain't >there. Try putting it in your ANSI C compiler. It won't work there either. "irritating" is defined twice in the same scope, which is illegal. If your C compiler allows this, report it to the vendor as a bug! -- Steve Clamage, TauMetric Corp, steve@taumet.com