What wrong did i do? (key in hashtable is always null)

The Anh Tran trtheanh at gmail.com
Wed Dec 30 20:56:12 PST 2009

This is just a small D exercise. I port c++ knucleotide from 

Issue 1:
If i manually listing hashtable contents, the key does exist in that ht.
But (key in hash_table) always yield null.
Worse, if i use: "auto val = ht[key]", an exception is thrown.

Problem code is from line 163 to 177.

Issue 2:
If I pass an AA (uint[ulong]) to a template function.
DMD complains that uint[ulong] is void.
How can i get the type of AA?

DMD 2.037. Linux Ubuntu.
Source code:
Sample data:


More information about the Digitalmars-d-learn mailing list