Bug 6853 – ParameterTypeTuple keeps storage class info but always compares equal

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-10-25T10:49:19Z
Last change time
2024-12-01T16:14:34Z
Keywords
wrong-code
Assigned to
No Owner
Creator
Andrej Mitrovic
Moved to GitHub: phobos#9915 →

Comments

Comment #0 by andrej.mitrovich — 2011-10-25T10:49:19Z
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 by robert.schadek — 2024-12-01T16:14:34Z
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