On Tuesday, 26 September 2017 at 19:31:56 UTC, Steven Schveighoffer wrote:
[...]

I just recently fixed Variant so it could accept shared data (so you could pass shared data using std.concurrency), and part of that depends on the fact that I know nothing else can point at the data (so no locking/atomics are necessary, we know the actual data is not shared).

I think it's very dangerous to extract a reference to the data, it breaks all kinds of expectations.

-Steve

Ok - I guess I'll have to make a custom Box of some kind.
Or maybe...even think outside the box ;)

  Thanks

Reply via email to