Creating a shared reference type

David Nadlinger see at klickverbot.at
Sat Jul 14 02:21:26 PDT 2012


On Saturday, 14 July 2012 at 09:15:55 UTC, Minas Mina wrote:
> Isn't this the way shared is used (or should be used)?

Should be used: probably yes. But functions/methods which are 
able to act on shared data must be marked  so, and unfortunately, 
the druntime primitives are not yet annotated with shared, so you 
need to manually cast shared() away first (or just use __gshared 
instead of shared).

David


More information about the Digitalmars-d-learn mailing list