Advice needed: Fixing intrinsics signatures for those that unduely take aligned vectors ?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Fri Jan 1 22:55:57 UTC 2021
On Friday, 1 January 2021 at 22:06:39 UTC, Guillaume Piolat wrote:
> I guess the reasoning is that that doesn't necessarily lead to
> a program shutdown, for example your allocator may return more
> bytes. Hence, @safe must have bounds checking.
I guess it depends on the nature of the array elements too. Read
out of bounds from an array of arrays could lead to overwrites as
it would get a bogus array, but not an array of floats which
would only obtain a senseless floating point value.
More information about the Digitalmars-d
mailing list