www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - void main

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


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:
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.

Mar 03 2005