shared - i need it to be useful
Walter Bright
newshound2 at digitalmars.com
Fri Oct 19 08:02:50 UTC 2018
On 10/17/2018 4:29 AM, jmh530 wrote:
> Isn't that also true for isolated data (data that only allows one alias)?
That's colloquially called "unique" data. And yes, it is also true for that.
That's why casting the return value of malloc() to 'shared' is safe. It's just
that the language has no way to semantically identify unique data with its
current type system.
More information about the Digitalmars-d
mailing list