← Back to index
|
Original Bugzilla link
Bug 1926 – TypeInfo methods getHash, compare, equals unimplemented for AA, function and delegate
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2008-03-17T09:56:00Z
Last change time
2015-11-03T18:58:58Z
Assigned to
nobody
Creator
fvbommel
Comments
Comment #0
by fvbommel — 2008-03-17T09:56:54Z
TypeInfo.{getHash,equals,compare} aren't implemented for TypeInfo_AssociativeArray, TypeInfo_Function and TypeInfo_Delegate, causing the use of the relevant types as AA keys to fail. Newsgroup reference: <
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=11732
>
Comment #1
by fvbommel — 2008-03-17T09:58:34Z
Also filed for Tango (since they use the same code): <
http://www.dsource.org/projects/tango/ticket/988
>
Comment #2
by sandford — 2011-05-11T17:19:32Z
This also affects D2. I'm changing the version number from 1.028 to D1 & D2.
Comment #3
by hsteoh — 2013-07-08T19:33:21Z
Related to issue #10380.
Comment #4
by hsteoh — 2014-07-12T04:40:45Z
Bug #10380 has been resolved; is this bug also fixed now, or is it still a problem?
Comment #5
by andrei — 2015-11-03T18:58:58Z
This works in D2: void main() { import std.stdio; int[int] aa1 = [1:2, 3:4]; int[int] aa2 = [5:6, 7:8]; byte[int[int]] s; writeln(aa1, " ", aa2); // Prints: [1:2,3:4] [5:6,7:8] s[aa1] = 1; s[aa2] = 2; writeln(s); // Prints: [[1:2,3:4]:2] }