On Mon, 05 Jan 2009 22:42:30 +0300, Jarrett Billingsley
<jarrett.billings...@gmail.com> wrote:
On Mon, Jan 5, 2009 at 2:39 PM, Denis Koroskin <2kor...@gmail.com> 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.