The "no gc" crowd
Sean Kelly
sean at invisibleduck.org
Fri Oct 11 13:20:30 PDT 2013
On Friday, 11 October 2013 at 18:26:52 UTC, Dicebot wrote:
> On Friday, 11 October 2013 at 18:22:46 UTC, Sean Kelly wrote:
>> It should. Stripping "shared" just means that you'll be able
>> to call any function available on the struct as opposed to
>> only explicitly shared functions. And the mutex gives you
>> atomic behavior (assuming you use the mutex properly anywhere
>> else you access the struct).
>
> How would it know which entity is associated with that mutex?
> (== which to strip shared from)
It wouldn't. I'm guessing it would just cast away shared.
More information about the Digitalmars-d
mailing list