__gshared on structs

Simen kjaeraas simen.kjaras at gmail.com
Sat Aug 14 02:55:19 PDT 2010


__gshared struct foo {
    int n;
}

foo f;

This f is not shared between threads, even though the
__gshared indicates it should be. Why is this not an error?

-- 
Simen


More information about the Digitalmars-d-learn mailing list