What is shared functions?

simendsjo simendsjo at gmail.com
Sun Oct 23 05:32:34 PDT 2011


What does shared for functions mean? I thought it was supposed to 
automatically synchronize access, but this doesn't seem to be the case.

void f() shared {
// no synchronization
}

void f() {
   synchronized {
     // do stuff
   }
}


More information about the Digitalmars-d-learn mailing list