main return value, struct padding

Bill Baxter wbaxter at gmail.com
Tue Jan 20 06:24:51 PST 2009


On Tue, Jan 20, 2009 at 11:15 PM, bearophile <bearophileHUGS at lycos.com> wrote:
> I post this here, but if later I see it fit I may post something in the main D group too.
>
> D allows to have the main() function of type void too. In such case I'd like the program return 0 by default. If people agrees, this can become a feature request.

What does it return now?  I always assumed returned zero for void main.

--bb


More information about the Digitalmars-d-learn mailing list