[Issue 6853] New: ParameterTypeTuple keeps storage class info but always compares equal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 25 10:50:25 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6853
Summary: ParameterTypeTuple keeps storage class info but always
compares equal
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-10-25 10:49:19 PDT ---
import std.traits;
void foo(int) { }
void bar(ref int) { }
void main()
{
pragma(msg, ParameterTypeTuple!foo); // (int)
pragma(msg, ParameterTypeTuple!bar); // (ref int)
static assert(is(ParameterTypeTuple!foo ==
ParameterTypeTuple!bar)); // pass
}
If the storage classes are not compared, then ParameterTypeTuple should not
keep them around. We have ParameterStorageClassTuple for that (which is itself
full of bugs too).
--
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