Is that 'is' syntax correct? I get a compile error at the comma. I've
got to say that tuples are proving to be both incredibly powerful and
incredibly frustrating to work with. I'm still trying to sort out a
working test to tell these two functions apart:
void fnA(Tuple!int) {}
void fnB(int) {}
Alternately, a way to pass a Tuple!int to either one automatically
would be even better. Or instead, make Variant.convertsTo distinguish
between the two. Right now it doesn't.
Sent from my iPhone
On Jun 19, 2010, at 12:03 PM, Andrei Alexandrescu <[email protected]>
wrote:
Yah, I noticed such errors too. Some come with the wrong file and
line number. FWIW, I think the definition should be writable as:
this(U)(U another) if (is(U == Tuple!(V), V...)) { ... }
IOW, we should be able to express all type constraints as an if-
constraint.
Andrei
On 06/19/2010 01:53 PM, dsource.org wrote:
phobos commit, revision 1670
user: sean
msg:
Cleaned up ctor def. I can still get bizarre compile errors in
some cases, but I don't think the remaining ones are ctor-related.
http://www.dsource.org/projects/phobos/changeset/1670
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos