[Issue 1288] Variables with type tuple as type should be able to act as lvalues
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 26 21:23:18 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1288
davidl at 126.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #1 from davidl at 126.com 2007-06-26 23:23 -------
IMO, your code should be as following:
import std.bind;
void main() {
Tuple!(int,int) foo;
foo = Tuple!(int,int)(1,1);
}
And the compiler emits the correct message IMO
If this is something about first class tuple, it's already on bug 1293
But I don't think D is gonna integrate such obscure builtin tuple.
And even first class tuple gets integrated , I still consider your code
shouldn't
work
--
More information about the Digitalmars-d-bugs
mailing list