Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!lupine!rfg From: rfg@NCD.COM (Ron Guilmette) Newsgroups: comp.lang.c++ Subject: Re: Can you prototype main() ????? Message-ID: <1668@lupine.NCD.COM> Date: 21 Sep 90 02:22:46 GMT References: <24447@uflorida.cis.ufl.EDU> <59517@bbn.BBN.COM> <6932@darkstar.ucsc.edu> Organization: Network Computing Devices, Inc., Mt. View, CA Lines: 27 In article <6932@darkstar.ucsc.edu> daniel@cis.ucsc.edu (Daniel Edelson) writes: >In article <59517@bbn.BBN.COM> saustin@bbn.com (Steve Austin) writes: >>I don't think it make much sense at all to prototype main. You prototype a >>function in order to call it - I don't know what you would get if you tried to >>call main, > >Again from section 3.4, ``The function main() may not be called from within a >program.'' Hummm... This looks like yet another one of these little C incompatabilities which didn't quite make it into the list of the incompatabilities in chapter 18. My favorite one is illustrated by the following example: void foobar (int irritating) { int irritating; } Put that in your C++ compiler! Then look for this in chapter 18. It ain't there. -- // Ron Guilmette - C++ Entomologist // Internet: rfg@ncd.com uucp: ...uunet!lupine!rfg // Motto: If it sticks, force it. If it breaks, it needed replacing anyway.