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.