Andrei Alexandrescu <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #2 from Andrei Alexandrescu <> 2011-07-22 
07:34:34 PDT ---
I think it's best to leave things as they are and close this. Automatic
expansion is a bad thing. Consider for example:

struct Tuple(T...) {
    T data;
    alias data this;

void doStuff(Tuple!(uint, float) t) {}
void doStuff(uint a, float b) {}

In this case we need to introduce a new rule that says the tuple should NOT be
expanded if there's a matching function, or a new rule that makes the call

Things are good as they are. If you want to expand, say t.expand. If you want
to pass the tuple as a unit, say t.

Kenji, please advise if you agree, and if so let's close this.

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

Reply via email to