[Issue 13658] Array length type is not size_t
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Oct 27 04:26:00 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13658
Mike Parker <aldacron at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |aldacron at gmail.com
Resolution|--- |INVALID
--- Comment #2 from Mike Parker <aldacron at gmail.com> ---
This comes from D's compatibility with C. size_t does not have a predefined
type size (in the C99 standard it is defined as an unsigned integer of at least
16 bytes in size). What you find on modern compilers is that it will be 32-bits
on 32-bit platforms and 64-bits on 64-bit platforms. So in D it is an alias for
uint on 32-bit and ulong on 64.
--
More information about the Digitalmars-d-bugs
mailing list