if(arr) now a warning

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 06:30:40 PDT 2015


On 4/10/15 9:26 AM, Meta wrote:
> On Friday, 10 April 2015 at 12:42:47 UTC, Steven Schveighoffer wrote:
>> Plus, adding arr.empty into object is kind of redundant. The only
>> reason we have arr.empty is so that it becomes a range.
>
> I find it extremely annoying to have to import std.array (or whatever
> the correct module is) just to use .empty, .front and ..popFront on
> arrays. IMO they should all be in object.d.

If only it were that easy... The problem is char[] (or rather, the 
insistence of Phobos that char[] is not an array).

-Steve


More information about the Digitalmars-d mailing list