About built-in AAs

Jesse Phillips jessekphillips+d at gmail.com
Wed Aug 17 18:10:38 PDT 2011


On Wed, 17 Aug 2011 15:40:25 -0700, Sean Kelly wrote:

> This would be a run-time issue, unless you're asking the compiler to
> verify your hash algorithm at compile-time :-p  I'd actually like to
> have some introspection functionality so I could find out the average
> chain length, max chain length, etc (basically what's provided by the
> unordered containers from C++11), but the user would still have to query
> this stuff to know that something was wrong.

What I got from it was that it didn't use his hash until he provided opCmp 
too, thus the compiler should complain when it isn't going to use the 
hash you provide.


More information about the Digitalmars-d mailing list