size_t + ptrdiff_t
Don Clugston
dac at nospam.com
Wed Feb 22 07:39:08 PST 2012
On 22/02/12 06:16, Walter Bright wrote:
> On 2/21/2012 6:07 PM, Juan Manuel Cabo wrote:
>> 16bit intel had 16bit segments and offsets, so memory was segmented
>> and you couldn't address more than 64kb at a time.
>> So you couldn't have grabbed^H^H"allocated" more than 64kb in real
>> mode in intel
>> in a single linear block.
>
> size_t was 16 bits on all 16 bit memory models except the 'huge' one.
I expected that for ptrdiff_t, but for size_t as well?
So sizeof(int *) was larger than size_t ?
More information about the Digitalmars-d
mailing list