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

           Summary: Can't use ref with foreach on tuple
           Product: D
           Version: 2.030
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: s...@invisibleduck.org


This code should compile:

    void fn(T...)( ref T args )
    {
        foreach( ref e; args )
            e = e.init;
    }

    void main()
    {
        int x, y;
        fn( x, y );
    }

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

Reply via email to