Sets / associative arrays with void values?

Stewart Gordon smjg_1998 at yahoo.com
Sun Jan 7 09:23:16 PST 2007


Vladimir Panteleev wrote:
<snip>
> void[int] foo;
<snip>
> Of course, the question comes: how would one add keys to such a 
> construct? The practical answer is obvious: use a real "dummy" data type 
> (bit, for example) as the value type, but I find it a shame that 
> declaring such constructs is allowed - yet you can't really use them.

Strange indeed.  Sounds like a bug.

But do have a look at hashset in my utility library:

http://pr.stewartsplace.org.uk/d/sutil/

Stewart.




More information about the Digitalmars-d mailing list