[Issue 7215] New: array.Appender.put should work on its own type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 3 20:59:55 PST 2012


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

           Summary: array.Appender.put should work on its own type
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-01-03 20:59:53 PST ---
Created an attachment (id=1065)
newput

import std.array;

void main()
{
    Appender!(int[]) args1;
    Appender!(int[]) args2;

    args1.put([1]);    // ok
    args1.put(args2);  // ng
}

I've made some simple modifications to allow this, see attachment.

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