Natural Word Length

Jakob Ovrum jakobovrum at gmail.com
Tue Dec 24 01:03:21 PST 2013


On Tuesday, 24 December 2013 at 08:57:43 UTC, Mike wrote:
> Is there a type in D that represents is always the unsigned 
> natural word of the platform?

Yes, use the type `size_t`.

It is an alias defined in object.d, which is a module part of 
druntime that is implicitly/automatically imported in all D 
modules, so `size_t` is available in all D code that uses 
druntime.

Usually questions like this are better aimed at the D.learn group 
:)


More information about the Digitalmars-d mailing list