Associative multidimensional Arrays

gedaiu szabobogdan at yahoo.com
Wed Jun 12 13:25:01 PDT 2013


Hi,

Please look at this thread. You might find your answer there:

http://forum.dlang.org/thread/vphniyxyvgsiazuttona@forum.dlang.org

Bogdan

On Wednesday, 12 June 2013 at 20:20:09 UTC, MaB wrote:
> Hi!
>
> I want to bulid up a IndexArray with a structure like this (PHP 
> code):
> <code>
> $arrIndex = array(
>  "A" => array(
>           "B" => array()
>         ),
>  "B" => array(
>           "B" => array("C" => array())
>         )
>
> );
> </code>
> The Keys are of Type string and the values can be arrays with 
> the same structure.
> The Array-Depth has to be variable..
> Is there a way in D to make it possible? I am trying it now 
> since hours :(
>
> Greetings



More information about the Digitalmars-d-learn mailing list