Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!um-math!sharkey!cfctech!teemc!hpftc!zardoz!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!usc!ginosko!gem.mps.ohio-state.edu!csd4.csd.uwm.edu!bionet!agate!helios.ee.lbl.gov!nosc!logicon.arpa!trantor.harris-atd.com!x102c!bbadger From: bbadger@x102c.harris-atd.com (Badger BA 64810) Newsgroups: comp.lang.c Subject: Re: want to know Message-ID: <2634@trantor.harris-atd.com> Date: 30 Aug 89 20:06:12 GMT References: <8487@bsu-cs.bsu.edu> <2980@solo9.cs.vu.nl> <182@sunquest.UUCP> <14269@haddock.ima.isc.com> <1496@l.cc.purdue.edu> <1701@crdgw1.crd.ge.com> <2538@trantor.harris-atd.com> <10760@smoke.BRL.MIL> <2563@trantor.harris-atd.com> <10781@smoke.BRL.MIL> <1989Aug28. Sender: news@trantor.harris-atd.com Reply-To: bbadger@x102c.harris-atd.com (Badger BA 64810) Organization: Harris GISD, Melbourne, FL Lines: 52 In article <10865@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >In article <1989Aug28.202551.9514@algor2.algorists.com> jeffrey@algor2.UUCP (Jeffrey Kegler) writes: >>Now bigapp.c, ut1.c, ut2.c, etc., each must have a main(). This is >>annoying for use with debuggers, cross-referencers, etc. > >If your debuggers etc. are that sick, then how in the world do you cope >with using the same file-static variable and function names in different >files? Really, I still don't see a problem with C and main(). There >may be a problem with your other software development tools, though, if >they can't handle such a simple thing. Of course, tools can do make-up fixes and kludge their way around a problem. Who needs ``for'' or ``while'' when you have ``if'' and ``goto''?? (:-)) This is the difference between ``unworkable'' and ``annoying''. But Mr. Gwyn is saying, ``What problem?'' It's kind of like having a tiny bubble in the lens of your glasses. It doesn't really interfere with your vision, and is hardly noticable unless you look directly at your glasses. Yet there are those of us who prefer to have our glasses without bubbles in the lenses. Some will say, ``But it's so small!'' Others will tell us to tip our heads and look through the top half of the lenses only. ``People who can't see over the bubble in their glasses don't know how to use their eyes.'' Well, it really is only a small detail, but it is a completely unnecessary implementation ``feechur'' which has, unfortunately, always been a part of the standard. I can't quite decide if Mr. Gwyn has actual reservations about doing without ``main()''. If the burden of proof was on putting ``main()'' into a new language, instead of taking it out of a language, how would you stand? Footnote: I see two distinct sides the problem of ``main()'': 1) Having to specify a single, fixed, main routine 2) Having to call the single, fixed, main routine, ``main''. (I'm making a distinction here between the ``main routine'' and the image entry point.) Side 1 probably deserves a separate thread, since the issues are more complex. Since most of the discussion to this point has been on side 2 of the problem, I've limite my comments in this article to side 2. I have assumed, for argument's sake, that the only thing we want to change about in: int main(int argc, char **argv, char **envp); is the name ``main''. ----- - - - - - - - ---- Bernard A. Badger Jr. 407/984-6385 |``Get a LIFE!'' -- J.H. Conway Harris GISD, Melbourne, FL 32902 |Buddy, can you paradigm? Internet: bbadger%x102c@trantor.harris-atd.com|'s/./&&/g' Tom sed expansively.