tuples

zkp0s gerar1995 at gmail.com
Mon Nov 2 09:31:38 PST 2009


> Ellery Newcomer Wrote:
> 
> > Is there currently any way to get something like
> > 
> > Tuple!(int,"i") t = tuple(5);
> > 
> > to work?

Also they are used like:
alias Tuple!(int,5) FOOBAR;
FOOBAR [0] a_uint = FOOBAR[1]; //declares a_uint as an uint with value 5;

http://www.digitalmars.com/d/2.0/tuple.html


More information about the Digitalmars-d-learn mailing list