[Issue 602] Compiler allows a goto statement to skip an initalization
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 1 05:33:41 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=602
--- Comment #22 from yebblies <yebblies at gmail.com> 2013-12-02 00:33:39 EST ---
(In reply to comment #21)
> This new change in the compiler forbids code like this that I have:
>
>
> void main() {
> import std.stdio;
> goto LABEL;
> enum code = "writeln(10);";
> LABEL:
> mixin(code);
> }
>
>
> Is this bad/OK/good/acceptable?
The compiler is bad, the code is OK/good/acceptable.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list