No, i cannot.

struct S {
        uint longnamed;
}

void main() {
        S somestruct;

        alias v = somestruct.longnamed;
        writeln(v);
}

Error: need 'this' for 'longnamed' of type 'uint'

Is it a bug ?

Reply via email to