[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:22:16 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=602



--- Comment #21 from bearophile_hugs at eml.cc 2013-12-01 05:22:11 PST ---
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?

-- 
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