www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - void main

Going on and on about this topic,
but can't "void main" be defined ?

http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/2677

It's also definitely something for
D 1.0, especially if made illegal!


I hope that "void main" can be *defined* in the D specification to
"return 0;", and that DMD will start checking the main return type:
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/2853
It doesn't have to be implemented just yet. Just added to the spec ?

I think "void main()" is an improvement over "int main(void)" in C.

--anders
Mar 03 2005