__gshared is "somewhat" transitive, isn't it ?

user1234 user1234 at 12.de
Thu May 16 17:04:09 UTC 2024


Given

```d
struct S
{
     int member;
}

__gshared S s;
```

It's clear that `s.member` is `__gshared` too, right ?
What does happen for

```d
struct S
{
     int member;
     static int globalMember;
}

__gshared S s;
```

Is then `S.globalMember` a TLS variable ? (I'd expect that)


More information about the Digitalmars-d-learn mailing list