main

Georg Wrede georg.wrede at nospam.org
Thu Feb 23 07:27:34 PST 2006


Derek Parnell wrote:
> On Thu, 23 Feb 2006 01:24:52 -0000, John C wrote:
> 
> 
>> "Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message 
>> news:dtj0de$i60$1 at digitaldaemon.com...
>> 
>>> "John C" <johnch_atms at hotmail.com> wrote in message 
>>> news:dthu9g$28gc$1 at digitaldaemon.com...
>>> 
>>>> Is "void main()" legal now? It used to cause an access
>>>> violation (on Win32),
>>> 
>>> It did?  I've been using void main() for ages on Windows..
>> 
>> Maybe my memory's going.
> 
> 
> I think the change for 'void main(){}' is that DMD now ensures that
> zero is returned to the operating system. So now its the same as 'int
> main() {return 0;}'

Yes. And I too don't remember when this was fixed. Probably like 6 
months ago.



More information about the Digitalmars-d-learn mailing list