<br><br><div class="gmail_quote">On 19 February 2012 23:16, Stewart Gordon <span dir="ltr"><<a href="mailto:smjg_1998@yahoo.com">smjg_1998@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 19/02/2012 17:51, Manu wrote:<br>
<snip><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    Hang on ... are we talking here about some "native int", or the int type?<br>
</blockquote></div>
<snip><div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't really understand your resistance? I'm going to have the type when I need it, the<br>
question is, will it be standardised, or will I (& everyone else) invent the name and<br>
introduce a block of (probably not very portable) version() bullshit at the top of their<br>
module?<br>
</blockquote>
<br></div>
I'm not saying we shouldn't have native integer types in D.  Maybe what's needed is to be clearer on what's meant exactly by a native integer type.  And then add the types to Phobos/druntime.<br>
<br>
I particularly don't understand your suggestion of the names "size_t" and "ssize_t" for these types.  They don't seem to me to denote the size of anything.  I guess "nativeInt" and "nativeUint", defined in whatever module would be suitable, would be one possibility.  Maybe someone has a better idea.<br>
</blockquote><div><br></div><div>well ssize_t is an already established compliment to size_t, I guess it's identical to ptrdiff_t, but some CRT's seem to prefer the ssize_t name. Personally size_t and ssize_t make more sense to me than size_t and ptrdiff_t, which seems like a contradiction of terminology, although the 'ptr' name seems more fitting to what it actually is...</div>
<div><br></div><div>Ultimately I don't care, I suspect the prior commitment to size_t and ptrdiff_t can not be changed (although redefining their meaning would not be a breaking change, it just might show some cases of inappropriate usages)</div>
<div>I agree that nativeInt should probably be in the standard library, but I'm really not into that name. It's really long and ugly. That said, I basically hate size_t too, it doesn't seem very D-ish, reeks of C mischief... and C stuffs up those types so much. It's not dependable what they actually mean in C (ie. ptr size/native word size) on all compilers I've come in contact with :/</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">But knowing what code in Phobos/druntime should be using native integer types might help put the problem in better perspective.<span class="HOEnZb"><font color="#888888"><br>

<br>
Stewart.<br>
</font></span></blockquote></div><br>