On 2011-03-03 01:42:18 -0500, Tom <t...@nospam.com> said:

I have...

int main(string[] args) {
        auto s1 = f(); // MH MH
        auto s2 = g(); // OK
        s2.c = null; // OK
        return 0;
}

I think the compiler complains because the s1.c member is not assignable (since it is const), so you can't assign to s1 as a whole. That said, it should probably be allowed for an initialization assignment like this one. I suggest you add it to the bug tracker.
<http://d.puremagic.com/issues/>


--
Michel Fortin
michel.for...@michelf.com
http://michelf.com/

Reply via email to