[Issue 1288] New: Variables with type tuple as type should be able to act as lvalues
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 23 13:15:34 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1288
Summary: Variables with type tuple as type should be able to act
as lvalues
Product: D
Version: 1.016
Platform: Other
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: onlystupidspamhere at yahoo.se
This works
template Tuple(T...) { alias T Tuple; }
void main() {
Tuple!(int,int) foo;
but
foo = Tuple!(1,1);
}
causes
Error: foo is not an lvalue
Error: forward reference to type (int, int)
Error: cannot implicitly convert expression (tuple(1,1)) of type (int, int) to
(int, int)
Error: cannot cast int to (int, int)
--
More information about the Digitalmars-d-bugs
mailing list