Any othe options for inserting into associative array?

Jesse Phillips jessekphillips+D at gmail.com
Mon Nov 7 12:27:38 PST 2011


Came across this when trying to get Juno to work. Is there a good workaround for it?

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

test.d(6): Error: function test.S.opAssign (int i) is not callable using argument types (S)

    void main() {
       S[string] ss;
       S s;
    
       ss["hello"] = s;
    }
    
    struct S {
       void opAssign(int i) {
       }
    }


More information about the Digitalmars-d-learn mailing list