Issue 6853 - ParameterTypeTuple keeps storage class info but always compares equal
Summary: ParameterTypeTuple keeps storage class info but always compares equal
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Windows
: P3 normal
Assignee: No Owner
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2011-10-25 10:49 UTC by Andrej Mitrovic
Modified: 2024-12-01 16:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2011-10-25 10:49:19 UTC
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).
Comment 1 dlangBugzillaToGithub 2024-12-01 16:14:34 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/9915

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB