main

Derek Parnell derek at psych.ward
Wed Feb 22 20:19:22 PST 2006


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;}'
-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
23/02/2006 3:18:08 PM



More information about the Digitalmars-d-learn mailing list