Goto skips declaration
Dennis
dkorpel at gmail.com
Tue Oct 30 22:57:25 UTC 2018
On Tuesday, 30 October 2018 at 21:21:22 UTC, Michelle Long wrote:
> There is no reason why the compiler should have a problem with
> this.. the fact that using brackets around int x; satisfies the
> compiler proves this.
It doesn't have a problem with that?
https://run.dlang.io/is/YRapyT
Also, if you're jumping out of a scope, most of the time a
(labeled) break suffices. I suppose in your actual code, you skip
to somewhere further than the first statement after the current
block?
More information about the Digitalmars-d
mailing list