Empty field doesn't exist for arrays, right?

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Mar 8 10:40:44 PST 2011


On 3/8/11, bearophile <bearophileHUGS at lycos.com> wrote:
> empty is not an array method, it's a free function that is used with a
> funny syntax.

Yes but the compiler doesn't know that until std.array is imported. A
better error message is that empty isn't a property of that array.
It's much easier to reason about this way.


More information about the Digitalmars-d-learn mailing list