Tuples & const values

bearophile bearophileHUGS at lycos.com
Tue May 31 04:39:23 PDT 2011


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


More information about the Digitalmars-d-learn mailing list