On Monday, 16 June 2014 at 11:44:53 UTC, Luís Marques wrote:
Regarding the D ABI, http://dlang.org/abi.html , I've noticed that the description for dynamic arrays seems ambiguous:

    offset   property  contents
    0        .length   array dimension
    size_t   .ptr      pointer to array data

Couldn't "array dimension" be either in bytes or in T units, for a T[]? It seems to be in bytes (I had assumed it was in T units). If you agree that it is ambiguous, please tweak the description to be more precise.

"Dimension" seems to say "number of elements" to me without much room for interpretation (which it indeed is).

Feel free to open a pull request if you have an idea for a better description, though.

Best,
David

Reply via email to