[ub] What does "The function main shall not be used within a program" mean?

Gabriel Dos Reis gdr at microsoft.com
Wed Jan 22 18:32:28 CET 2014



> On Jan 21, 2014, at 5:58 PM, "David Krauss" <david_work at me.com> wrote:
> 
> 
>> On Jan 22, 2014, at 9:08 AM, Stephen Clamage <stephen.clamage at oracle.com> wrote:
>> 
>> If you could declare
> 
> Is the intent to prohibit forward declaration? This would seem to be the difference between use and ODR-use in the original question.

I don't see what difference it would make.  But I am curious: what would declare main for?

Also keep in mind that the word ODR-use is a fairly recent invention.  Before that, we just said "use".


More information about the ub mailing list