dmd v2.065 compatibility
Chris
wendlec at tcd.ie
Fri Mar 14 04:41:48 PDT 2014
On Friday, 14 March 2014 at 11:14:15 UTC, bearophile wrote:
> 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
Interesting, though, that I got away with it until v2.065.
More information about the Digitalmars-d-learn
mailing list