www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Tuples & const values

Currently this doesn't work, but I'd like to do this:

import std.typecons;
void main() {
    const int x = 1;
    const int y = 2;
    auto t = tuple(x, y);
}

Is it possible to modify the tuples to allow this?

Bye,
bearophile
May 31 2011