Size_t on x86 is uint,on x64 is ulong,it's a good thing?

Nick Sabalausky via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 17 14:27:09 PDT 2014


On 4/17/2014 12:36 PM,  FrankLike wrote:
>   Size_t  on x86 is uint,on x64 is ulong,it's a good thing?
>
>    I don't think is ok.
>    it  creates many convert  thing,such as length is ulong ,must cast to
> int or cast to uint. It will be waste of time ,I think.
>
>

If you want fixed-length, you use uint/ulong/etc. The whole point of 
size_t is for when you need the hardware's native data size.



More information about the Digitalmars-d mailing list