Very limited shared promotion

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Tue Jun 18 06:27:27 UTC 2019


On Tuesday, 18 June 2019 at 02:54:10 UTC, Walter Bright wrote:
> I suggest instead making `x` shared. Then cast it to unshared 
> when protected with a mutex.

Doesn't this imply implementing rust-style borrowing?
How do you ensure that a reference to unshared isn't retained 
after the mutex is released?



More information about the Digitalmars-d mailing list