__gshared on structs

Simen kjaeraas simen.kjaras at gmail.com
Sun Aug 15 08:15:19 PDT 2010


Trass3r <un at known.com> wrote:

> I don't think that this syntax is supported at all.
> You need to use __gshared with the instance instead:
> __gshared foo f;

Hence my asking 'Why is this not an error?'.

However, shared struct foo {} works, so one might
expect symmetry to dictate that __gshared might, too.

-- 
Simen


More information about the Digitalmars-d-learn mailing list