Static associative arrays?
Stewart Gordon
smjg_1998 at yahoo.com
Fri Mar 16 09:06:04 PDT 2007
Dan Wrote:
<snip>
> Associative Arrays should be no different really. I think the
> issue with this is that the hash function he's using runs on
> pointers, which means you can't build the hashtables until
> runtime and therefore can't have static associative arrays
> without changes. Am I correct?
<snip>
But it should still work on built-in types. Moreover, even if for a given type doing it at compiletime doesn't work, it could generate a module constructor that does the initialisation.
Stewart.
More information about the Digitalmars-d
mailing list