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



--- Comment #2 from Trass3r <mrmoc...@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: -------

Reply via email to