[Issue 7518] std.array.empty doesn't work for shared arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 27 19:21:48 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7518


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2012-02-27 19:21:47 PST ---
This reduces to:

bool empty(T)(in T[] a)
{
    return !a.length;
}


void main() {
    shared string[] stuff;
    stuff.empty();
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list