[Issue 6318] module isn't fully processed under weird conditions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 15 05:06:10 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6318



--- Comment #2 from Trass3r <mrmocool at gmx.de> 2011-07-15 05:00:51 PDT ---
And for completeness the Msg generation from basic.Messages:

private immutable records =
[
    ["bla",        "blub"],
];


mixin (generateMsgEnum());
private string generateMsgEnum()
{
    string res = " enum Msg : string\n{\n";

    foreach (msg; .messageRecords)
        res ~= "    " ~ msg[0] ~ " = `" ~ msg[1] ~ "`,\n";

    res ~= "}\n";
    return res;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list