A few thoughts on std.allocator
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 12 22:35:17 PDT 2015
On Tuesday, 12 May 2015 at 17:21:04 UTC, Steven Schveighoffer
wrote:
> The one that always comes to my mind is array appending:
>
> immutable int[] x = new int[5];
>
> const int[] y = x;
>
> x ~= 1; // should this lock;
>
> y ~= 1; // should this lock?
As per my udnerstanding `shared` should _never_ result in
automatic locking or barriers or whatever. It is simply a tag
qualfier, with no extra magical semantics.
More information about the Digitalmars-d
mailing list