🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2143

Re: return vs. exit(), ANSI vs. POSIX

#2143
From: Norman Diamond
Date: Mon, 28 Sep 1992 01:20
17 lines
1577 bytes
In article <1992Sep25.141556.7799@news2.cis.umn.edu> fin@unet.umn.edu (Craig A. Finseth) writes:
>Personal opinion follows:
>	Considering that return from main() is handled specially by
>	the compiler,

Yes.  (By the implementation somewhere, not necessarily in the compiler.)

>	              I consider _any_ recursive invocation of main()
>	to be suspect and hence not reasonable.

The standard considers recursive invocation of main() to be allowable and
reasonable.  (Logically reasonable.  The standard does not judge aesthetics.)
RTFS.
--
Norman Diamond       diamond@jit081.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
"Yeah -- bad wiring.  That was probably it.  Very bad."
Technical Details
Message-ID: <1992Sep28.012045.4244@nntpd.lkg.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!deccrl!news.crl.dec.com!pa.dec.com!oct17.dfe.dec.com!ryn.mro4.dec.com!nntpd.lkg.dec.com!jit345.bad.jit.dec.com!diamond
References: <1992Sep23.102414.3989@Urmel.Informatik.RWTH-Aachen.DE> <Bv1KD3.26q@zoo.toronto.edu> <1992Sep23.235042.9178@cirrus.com> <1992Sep24.033610.21802@oucsace.cs.ohiou.edu> <1992Sep24.140006.25009@news2.cis.umn.edu> <1992Sep24.194335.20028@merlin.dev <1992Sep25.141556.7799@news2.cis.umn.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!deccrl!news.crl.dec.com!pa.dec.com!oct17.dfe.dec.com!ryn.mro4.dec.com!nntpd.lkg.dec.com!jit345.bad.jit.dec.com!diamond
From: diamond@jit345.bad.jit.dec.com (Norman Diamond)
Subject: Re: return vs. exit(), ANSI vs. POSIX
Message-ID: <1992Sep28.012045.4244@nntpd.lkg.dec.com>
Sender: usenet@nntpd.lkg.dec.com (USENET News System)
Reply-To: diamond@jit.dec.com (Norman Diamond)
Organization: Digital Equipment Corporation Japan , Tokyo
References: <1992Sep23.102414.3989@Urmel.Informatik.RWTH-Aachen.DE> <Bv1KD3.26q@zoo.toronto.edu> <1992Sep23.235042.9178@cirrus.com> <1992Sep24.033610.21802@oucsace.cs.ohiou.edu> <1992Sep24.140006.25009@news2.cis.umn.edu> <1992Sep24.194335.20028@merlin.dev <1992Sep25.141556.7799@news2.cis.umn.edu>
Date: Mon, 28 Sep 1992 01:20:45 GMT
Lines: 17