wrzosk:
> Object[string] foo;
> foo["aaa"] = new AAA();

In D there is no the automatic boxing present in C#, so that can contain any 
object, but not any value. If you want to store any value, you need the values 
of that associative array to be of some kind of Box or Variant, etc. There are 
variant-like types both in Phobos and Tango, but you have to test if they work 
well for your purposes because it seems it's easy to put bugs in a Variant 
implementation.

Bye,
bearophile

Reply via email to