On Mon, 05 Jan 2009 22:42:30 +0300, Jarrett Billingsley <[email protected]> wrote:
On Mon, Jan 5, 2009 at 2:39 PM, Denis Koroskin <[email protected]> wrote:Both work for me (dmd 2.012): import std.typecons; void main() { Tuple!(int, int) x = Tuple!(int, int)(1, 2); Tuple!(int, int) y = {1, 2}; }Now you're comparing apples and oranges :) A typical: template Tuple(T...) { alias T Tuple; } template does not behave anything like the one defined in std.typecons.
When one talks about Foo and Foo is not a standard library type OR (like in this case) is a custom user-defined type, he should show its implementation. Since none was mentioned, I assumed he was talking about std.typecons.Tuple.
