Boost logo

Boost :

From: Paul A. Bristow (boost_at_[hidden])
Date: 2001-10-10 04:09:39


I agree with this - I beleive it is just good practice to set a return from
main,
even if the is only one and it is an 'exit OK'.

Paul

Dr Paul A Bristow, hetp Chromatography
Prizet Farmhouse
Kendal, Cumbria
LA8 8AB UK
+44 1539 561830
Mobile +44 7714 33 02 04
mailto:pbristow_at_[hidden]

> -----Original Message-----
> From: deansturtevant_at_[hidden] [mailto:deansturtevant_at_[hidden]]
> Sent: Monday, October 08, 2001 11:39 PM
> To: boost_at_[hidden]
> Subject: [boost] Re: VC++ 6.0 and thread example
>
>
> >
> > > 3) VC++ 6.0 gives a bothersome warning if no "return 0"
> > > is at the end of main.
> >
> > Well, that's just a VC++ problem. The code is valid and shouldn't
> > produce a diagnostic, so I'm not going to change it.
> >
>
> IMHO, the standard is the one with the problem. Why is it that all
> functions that return int must return int except for 'main'? Correct
> me if I am mistaken, but it's because prior to standardization, main
> could return void, and changing existing code to return 0 was
> considered too much of a burden. I feel proper coding practice is to
> make the return explicit, regardless of whether the standard says
> it's not necessary.
>
> - Dean
>
>
> Info: http://www.boost.org Unsubscribe:
> <mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk