[Issue 3072] New: tuples can't be aliases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 16 20:55:17 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3072
Summary: tuples can't be aliases
Product: D
Version: unspecified
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: shro8822 at vandals.uidaho.edu
D1.0
import std.stdio;
template Ta(alias t){void Tfn(){writef(t);}}
template Tt(t...){void Tfn(){writef(t);}}
struct S
{
int i; int j; int k;
mixin Ta!(i); // passes
mixin Tt!(i,j); // fails
}
this causes issues for mixin function that are supposed to work on a subset of
the members of the enclosing type. The string mixin work around is just flat
ugly.
I don't think the spec says this shouldn't work so I'm calling it a bug.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list