view test/tuple1.d @ 180:90522b72128a trunk

[svn r196] Added C++ version of the ray demo for comparing.
author lindquist
date Wed, 07 May 2008 18:46:56 +0200
parents 8d45266bbabe
children
line wrap: on
line source

module tuple1;

template Tuple(T...) {
    alias T Tuple;
}

struct S
{
    int i;
    long l;
}

void main()
{
    S s = S(Tuple!(1,2L));
    assert(s.i == 1);
    assert(s.l == 2);
}