Test for element in array

Derek Parnell derek at psych.ward
Fri Jul 14 19:13:19 PDT 2006


On Sat, 15 Jul 2006 02:46:24 +1000, Carlos Santander  
<csantander619 at gmail.com> wrote:


>
> It was possible some time ago, but it got forbidden. What I've been  
> doing (and I think others too) is:
>
> char [] [char []] whos;
>
> And set the element to both the key and the value. However, I admit I  
> liked void [T].

Actually I use

   bool[ char[] ] whos;

   whos["Capone"] = true;



-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d-learn mailing list