On Monday, 20 October 2014 at 17:37:22 UTC, Sean Kelly wrote:
With all the recent work on the GC, we really really need to start tracking which thread owns a given non-shared object so it can be finalized properly. This may mean having the process of casting away shared make the executing thread the new owner of the object.
But this change of ownership is usually only temporary:
with(cast(BaseType) sharedVar) {
// ...
}
