On Tue, 21 Oct 2014 16:47:04 +0000 Solomon E via Digitalmars-d-learn <[email protected]> wrote:
> That's unsafe because the implementation might change, and
> pointer arithmetic is unsafe in general.
sure, ponter casting is implementation-dependend. but .ptr is
guaranteed to work as expected. 'a' is just a `struct { size_t length;
void* ptr }` now, but this representation is implementation detail, not
a convention.
signature.asc
Description: PGP signature
