May 31, 2011 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
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply