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

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:
------- You are receiving this mail because: -------

Reply via email to