On Tuesday, 12 May 2015 at 15:51:38 UTC, Steven Schveighoffer wrote:
The whole concept of immutable being implicitly shareable is kind of broken. There are many reasons to have immutable unshared data, and it poisons const to the point where you really should consider any const variable to be also shared.

-Steve

What are the extra implications of having to think of all const variables as shared? I guess it would mean the currently unimplemented memory barriers should happen for const variables as well. That does seem like a problem.

Reply via email to