Manu's `shared` vs the @trusted promise
Nicholas Wilson
iamthewilsonator at hotmail.com
Mon Oct 22 14:49:13 UTC 2018
On Monday, 22 October 2018 at 11:24:27 UTC, Dukc wrote:
> Frankly, this does not sound credible. According to this
> rationale, array access should be @system too, because it
> relies on the array not giving direct access to its length to
> the user, which would also in itself be @safe.
For reading, its a size_t so can be done with atomics, writing
OTOH is a @property that calls a function to reallocate if ned
be. Reallocation obviously needs to be locked.
More information about the Digitalmars-d
mailing list