.empty and .length Amend language manual?
Tobias Pankrath
tobias at pankrath.net
Wed Apr 18 07:39:51 PDT 2012
On Wednesday, 18 April 2012 at 14:35:07 UTC, dcoder wrote:
> I'm using the language reference on dlang.org (which is
> awesome), anyways, I can't find a description of .empty in the
> array section. Should it be there? I don't see it in the
> property section either.
>
> Could someone more expert than me, add it in somewhere? Thanks.
>
> Also, is there any surprises / difference between the two:
>
> if( !arr.length)
>
> and
>
> if( arr.empty)
>
> do they produce the same thing all the time?
>
> thanks.
It's a function from std.array called via UFCS.
More information about the Digitalmars-d-learn
mailing list