shared - i need it to be useful
Walter Bright
newshound2 at digitalmars.com
Fri Oct 19 10:06:50 UTC 2018
On 10/17/2018 12:20 AM, Manu wrote:
> What does it mean 'aliased' precisely?
Aliasing means there are two paths to the same piece of data. That could be two
pointers pointing to the same data, or one pointer to a variable that is
accessible by name.
> It doesn't really give us
> anything in practice that we don't have in C++.
It provides a standard, enforced way to distinguish shared data from unshared
data, and no way to bypass it in @safe code. There's no way to do that in C++.
More information about the Digitalmars-d
mailing list