On 3/22/12, Andrej Mitrovic <andrej.mitrov...@gmail.com> wrote: > Your test files work ok.
Well unfortunately isAssociativeArray from std.traits fails on your hashes (reasonable, since it calls __traits internally and has no way of knowing about external hashes). I also can't use your hashes with some helper functions that I use: template ValueType(V : V[K], K) { alias V ValueType; } The function that needs the above is: void addKey(AA, Key)(ref AA hash, Key key) if (isAssociativeArray!AA && is(KeyType!AA == Key)) { hash[key] = (ValueType!AA).init; } I can temporarily remove those constraints, but how do I extract the value type of your hash?