www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18426] New: Conversion from Tuple with named fields to Tuple


          Issue ID: 18426
           Summary: Conversion from Tuple with named fields to Tuple
                    without named fields should work during compilation
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

Refer to

Currently we implement the correct subtyping by means of a cast, which does not
work during compilation.

A better implementation would be to have the Tuple with named fields use the
Tuple with no named fields as its only member variable; then, "alias this"
needs to simply return a reference to that member.

Feb 12 2018