Creating a shared reference type
Minas Mina
minas_mina1990 at hotmail.co.uk
Sat Jul 14 05:52:11 PDT 2012
On Saturday, 14 July 2012 at 09:21:27 UTC, David Nadlinger wrote:
> 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
Thank you, __gshared was actually what I was looking for!
More information about the Digitalmars-d-learn
mailing list