On Fri, 11 Nov 2011 04:13:21 -0500, Andrea Fontana <[email protected]>
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