This is a discussion on Re: return or exit at end of main()? within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On Sat, May 14, 2005 at 12:05:33PM +0200, Marc Espie wrote: > On Sat, May 14, 2005 at 11:44:53AM ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Sat, May 14, 2005 at 12:05:33PM +0200, Marc Espie wrote: > On Sat, May 14, 2005 at 11:44:53AM +0200, marc@msys.ch wrote: > > Actually there is. With exit instead of return, h's destructor is > > not called. > > Is this what's written in the standard ? or is this just the behavior > you currently see ? Wouldn't it be ridiculous by the standard to expect the compiler to threat a function call special for main()? Joerg |