DMD32 vs DMD64 array.length
Steven Schveighoffer
schveiguy at yahoo.com
Fri Nov 11 05:08:54 PST 2011
On Fri, 11 Nov 2011 04:13:21 -0500, Andrea Fontana <advmail at katamail.com>
wrote:
> I don't think it's a good idea. In this case it's my fault, I should
> imagine that a size_t datatype exists for arrays.
size_t is not a builtin type. It's aliased to ulong or uint depending on
the architecture.
The compiler is not aware of size_t.
However, given that the compiler has some quirky knowledge of phobos (i.e.
if you use writeln without importing std.stdio, it gives you a helpful
message about importing it), I would think we could do something along the
same lines for array.length.
-Steve
More information about the Digitalmars-d
mailing list