Associative arrays question
Robby
robby.lansaw at gmail.com
Mon Dec 31 02:51:35 PST 2007
ta!
~Robby
Jérôme M. Berger wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Robby wrote:
>> It's probably quite simple, but for some reason I seem to be in a blank.
>>
>> I'm trying to write an associative array where a enum is the key and a
>> array of classes is the value.
>>
>> So given a simple example
>> enum T {Zero,One,Two,Three,Four,Five}
>> class L {}
>>
>> How would I write the declaration for an associative array?
>>
>> I thought it may be L[T[]][] but it's clearly not, help?
>
> Wouldn't it be L[][T]?
>
> Jerome
> - --
> +------------------------- Jerome M. BERGER ---------------------+
> | mailto:jeberger at free.fr | ICQ: 238062172 |
> | http://jeberger.free.fr/ | Jabber: jeberger at jabber.fr |
> +---------------------------------+------------------------------+
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
>
> iD8DBQFHeLzUd0kWM4JG3k8RAtXFAJ9g6lHfhjg9YHZx3BEedlvs2oOc+QCghKVY
> JKj2AwDY+DTaGMJQ8PS8qNU=
> =+tA2
> -----END PGP SIGNATURE-----
More information about the Digitalmars-d-learn
mailing list