Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Melzzzzz <mel@zzzzz.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Can main() be called by itself? |
| Date | 2015-08-14 14:19 +0200 |
| Organization | albasani.net |
| Message-ID | <20150814141959.49a369c4@maxa-pc> (permalink) |
| References | <39b9ef39-3874-4983-8165-035b51b78827@googlegroups.com> <hfGdndgRHve0DVDInZ2dnUU7-b2dnZ2d@posted.internetamerica> <87d1yqywoy.fsf@bsb.me.uk> <C-main-20150814130337@ram.dialup.fu-berlin.de> <mqkkqm$m65$1@dont-email.me> |
On Fri, 14 Aug 2015 07:54:33 -0400 James Kuyper <jameskuyper@verizon.net> wrote: > On 08/14/2015 07:04 AM, Stefan Ram wrote: > > Ben Bacarisse <ben.usenet@bsb.me.uk> writes: > >> Right, but an implementation can define others, so there is no > >> reason to reject the question on this basis. (I know you are not > >> doing that. I'm just clearing up a detail.) > > > > In C, main may call itself. In C++, this has been forbidden. > > In C++, the rule is more general: no part of your program can call > main(). In C, any part can. Hm that has implication of how CRT initializes. In C main has to be ordinary function, while in C++ main can perform run time initialization of program.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can main() be called by itself? fl <rxjwg98@gmail.com> - 2015-08-13 16:51 -0700
Re: Can main() be called by itself? Melzzzzz <mel@zzzzz.com> - 2015-08-14 01:58 +0200
Re: Can main() be called by itself? James Kuyper <jameskuyper@verizon.net> - 2015-08-13 23:32 -0400
Re: Can main() be called by itself? Keith Thompson <kst-u@mib.org> - 2015-08-14 11:14 -0700
Re: Can main() be called by itself? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2015-08-13 22:14 -0600
Re: Can main() be called by itself? Keith Thompson <kst-u@mib.org> - 2015-08-14 11:15 -0700
Re: Can main() be called by itself? gordonb.mj8yu@burditt.org (Gordon Burditt) - 2015-08-14 01:52 -0500
Re: Can main() be called by itself? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-08-14 11:46 +0100
Re: Can main() be called by itself? James Kuyper <jameskuyper@verizon.net> - 2015-08-14 07:54 -0400
Re: Can main() be called by itself? Melzzzzz <mel@zzzzz.com> - 2015-08-14 14:19 +0200
Re: Can main() be called by itself? David Brown <david.brown@hesbynett.no> - 2015-08-14 14:50 +0200
Re: Can main() be called by itself? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-08-16 10:39 -0700
Re: Can main() be called by itself? gazelle@shell.xmission.com (Kenny McCormack) - 2015-08-14 12:32 +0000
csiph-web