Expression tuples

simendsjo simen.endsjo at pandavre.com
Wed Mar 16 13:07:08 PDT 2011


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

// this example fails
Tuple!(3, 7, 'c')

typecons.d(298): Error: static assert "Attempted to instantiate Tuple
with an invalid argument: 3"

Even this fails:
alias Tuple!(0) T;

Is Tuple only meant to store types or named types?


More information about the Digitalmars-d-learn mailing list