dmd v2.065 compatibility

bearophile bearophileHUGS at lycos.com
Fri Mar 14 04:14:14 PDT 2014


Chris:

> Thanks for the answer. Any particular reason why the variable 
> declaration should not be skipped? Security? Code generation?

In D all variables get initialized at the definition point 
(unless you add a "= void"). A goto skips this initialization, 
and this breaks certain safety generates D relies on.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list