Forbid dynamic arrays in boolean evaluation contexts

Andrea Fontana nospam at example.com
Mon Mar 25 07:29:32 PDT 2013


On Monday, 25 March 2013 at 14:20:27 UTC, bearophile wrote:
> Andrea Fontana:
>
>> why not a.length == 0 ?
>
> a.length == 0 is OK of course, it's the same thing as writing 
> a.empty.
>
> Bye,
> bearophile

Is empty() there just to match range "interface"?

length needs no import :)


More information about the Digitalmars-d mailing list