size_t + ptrdiff_t
smjg_1998 at yahoo.com
Sun Feb 19 09:26:59 PST 2012
On 19/02/2012 17:04, Manu wrote:
> Indeed, how does code rely on the concept of native int at all?
> You can't imagine any situation where you might want to know how big an int is?
Hang on ... are we talking here about some "native int", or the int type?
If you want to know the size of a "native int", I think you would need to know more about
how the particular machine works internally in order to take advantage of it.
If you want to know the size of an int, you would just use int.sizeof. Problem solved.
More information about the Digitalmars-d