Problem with clear on shared associative array?

Andy Valencia dont at spam.me
Sun May 26 14:39:53 UTC 2024


The following code fails to compile; it appears from the error 
message that the library's clear() function is not ready to act 
on a shared AA?

synchronized class F {

private:
     string[int] mydict;

public:
     void clear() {
         this.mydict.clear();
     }
}

void
main()
{
     auto f = new shared F();
     f.clear();
}


More information about the Digitalmars-d-learn mailing list