Public Comment Number PC-UK0099 ISO/IEC CD 9899 (SC22N2620) Public Comment =========================================== Date: 1998-02-25 Author: N.M Maclaren Author Affiliation: Self Postal Address: University of Cambridge, Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB3 3QG, United Kingdom E-mail Address: Telephone Number: +44 1223 334761 Fax Number: +44 1223 334679 Number of individual comments: 1 Comment 1. Category: Normative change to existing feature retaining the original intent Committee Draft subsection: 5.1.2.2.3 Title: Program termination Detailed description: The function main is very peculiar in several respects, and a great many users get confused by what forms of return lead to defined behaviour. I think that dropping off the end of main() in a hosted implementation should be defined to behave as if it were 'return 0;', which is clearly upwards compatible with the existing state. A far better solution would be to require non-void functions to return with a value, but that is more controversial.