main return value, struct padding

bearophile bearophileHUGS at lycos.com
Tue Jan 20 06:15:04 PST 2009


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.

A question: when D automatically adds some padding to a struct, is such unused space guaranteed to be initialized to a default constant value, like zero?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list