Use .get() in MultiD Assoc Array?

Paul phshaffer at gmail.com
Thu Aug 30 13:24:25 PDT 2012


On Thursday, 30 August 2012 at 19:40:44 UTC, Philippe Sigaud 
wrote:
> On Thu, Aug 30, 2012 at 9:30 PM, Jonathan M Davis 
> <jmdavisProg at gmx.com> wrote:

> Yes, that's what I wanted to propose. Group an AA and a 
> standard,
> dynamic, array. The array is just filled with the key, when you 
> assign
> a new key/value pair. To query the structure, use the AA. To 
> print the
> structure in order, iterate on this array of keys and query the 
> AA
> accordingly.

So one array like-  aa[MyKey("abc","def","ghi")] = "my value";

and another like- string[] da; da[99]="abc"~","~"def"~","~"ghi";
or maybe-          MyKey[] da; da[99]=MyKey("abc","def","ghi");

This thread has been quite helpful already.  Thanks to all.


More information about the Digitalmars-d-learn mailing list