June 02, 2009
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: bugzilla@digitalmars.com
        ReportedBy: sean@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: -------
June 02, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3045


David Simcha <dsimcha@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dsimcha@yahoo.com
         Resolution|                            |DUPLICATE




--- Comment #1 from David Simcha <dsimcha@yahoo.com>  2009-06-02 05:51:21 PDT ---


*** This issue has been marked as a duplicate of issue 2411 ***

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