size_t + ptrdiff_t

Stewart Gordon smjg_1998 at
Wed Feb 22 07:16:41 PST 2012

On 22/02/2012 07:24, Jacob Carlborg wrote:
> On 2012-02-22 06:24, Walter Bright wrote:
>> On 2/21/2012 2:11 PM, Stewart Gordon wrote:
>>> Are we going to have c_long_long as well?
>> Probably.
> Wouldn't that always be a "long" in D? Or is it the same as with "long" in C.

long in D is 64 bits.
long in C is 32 bits (on Win16/32 at least).

If the C standard sets in stone the size of a long long, then we can do away with a 
c_long_long and just use long.  Otherwise, if we're going to have c_int and c_long, it 
only makes sense to have c_long_long as well.


More information about the Digitalmars-d mailing list