Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1890 (new defect)

Opened 14 years ago

Last modified 14 years ago

Associative arrays not comparable

Reported by: eachainn Assigned to: community
Priority: major Milestone: 1.0
Component: Tango Version: 0.99.9 Kai
Keywords: Cc:

Description

Following code throws a runtime exception, while d1/phobos (and d2, when you replace char[] with string) runs without issue.

module test;

void main(){

char[][][int[char]] words; int[char] word; foreach(c; "hello") word[c]++; words[word] ~= "hello"; int[char] word2; foreach(c; "hlelo") word2[c]++; words[word2] ~= "hlelo";

}

Change History

03/27/10 03:21:08 changed by eachainn

Dang it, some day I'll remember to put my code in blocks.

05/10/10 01:12:31 changed by kris

  • owner changed from kris to community.