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> wrote in message 
> news:dtj0de$i60$1 at
>> "John C" <johnch_atms at> wrote in message 
>> news:dthu9g$28gc$1 at
>>> 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;}'
(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