Summary: Multi-assignment for typetuples is bad
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-07-23 05:28:42 PDT ---
This is a spinoff of issue 6365

This program compiles and runs with no errors (it doesn't assert), DMD 2.054:

import std.typetuple;
void main() {
    TypeTuple!(int, int) f = 10;
    assert(f[0] == 10);
    assert(f[1] == 10);

The idea of carring this broken TypeTuple semantics over to Tuples too is icky.
I instead suggest to turn this into a compile-time error.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to