Associative array for array of classes

clayasaurus clayasaurus at gmail.com
Wed Apr 26 22:38:30 PDT 2006


Derek Parnell wrote:
> On Wed, 26 Apr 2006 23:49:07 -0500, clayasaurus wrote:
> 
> Try this ...
> 
>   if (!(i in assoc2))
>     assoc2[i] = new Class;
> 

Thanks :) That seems to do the trick.



More information about the Digitalmars-d-learn mailing list