shared - i need it to be useful

Peter Alexander peter.alexander.au at gmail.com
Mon Oct 15 19:14:58 UTC 2018


On Monday, 15 October 2018 at 18:46:45 UTC, Manu wrote:
> 2. object may have shared methods; such methods CAN be called on
> shared instances. such methods may internally implement
> synchronisation to perform their function. perhaps methods of a
> lock-free queue structure for instance, or operator overloads on
> `Atomic!int`, etc.

Just checking my understanding: are you saying here that shared 
methods can effectively do anything and the burden of correctness 
is on the author? Or do you still have to cast the shared away 
first?





More information about the Digitalmars-d mailing list