Hello,

Why this doesn't work?

import std;

struct Qwezzz
{
        shared static this()
    {
        qaz = qazMap;
    }

    enum qazMap = ["rrr": "vv", "hty": "4ft6"];
    static immutable string[string] qaz;
}

void main()
{
    enum sorted = Qwezzz.qaz.keys.sort();
}

The variable "qaz" is static immutable and doesn't work in CTFE.

Reply via email to