[Issue 10535] New: Add a function to druntime which returns an empty AA

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 3 22:18:32 PDT 2013


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

           Summary: Add a function to druntime which returns an empty AA
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: jmdavisProg at gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-07-03 22:18:30 PDT ---
Right now, the only way to get an empty AA (as opposed to a null one) is to add
an element to it and then remove it, which is neither user-friendly, nor
efficient. It would be easy enough to create a function which at least wrapped
all that (creating the AA, adding the element, and then removing it), but it
would be more efficient if the AA implementation did it, since it should be
able to do it without having to add or remove an element. It would also be
possible for the AA implementation to do it without using the init property (as
adding and then removing an element would likely require the init property in
order to get an element to add).

So, this enhancement request is for adding a function to druntime which returns
an empty AA without actually adding or removing elements from the AA to do it.

-- 
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