On 02/15/2011 02:01 PM, Daniel Gibson wrote:
Am 15.02.2011 12:50, schrieb spir:
On 02/15/2011 03:44 AM, Piotr Szturmaj wrote:
spir wrote:
Rename size-t, or rather introduce a meaningful standard alias? (would
vote for Natural)
Maybe ptrint and ptruint?
If ptr means pointer, then it's wrong: size-t is used for more than
that, I guess. Strangely enough, while "size" may suggest it, .length
does not return a size_t but an uint.
Denis
.length of what? An array?
I'm pretty sure it returns size_t.
unittest {
int[] ints; auto l = ints.length;
writeln(typeof(l).stringof);
}
press play ;-)
denis
--
_________________
vita es estrany
spir.wikidot.com