Nested associative arrays

Jacob Carlborg doob at me.com
Sat Nov 13 03:02:11 PST 2010


On 2010-11-12 17:44, Ellery Newcomer wrote:
> Should be. Are you having problems?
>
> (I don't use them much, but fwiw, it seems like tango had some
> [trivial?] problems with them)
>
> On 11/12/2010 10:08 AM, Jacob Carlborg wrote:
>> Is D supposed to be able to handle nested associative arrays ?
>>
>>

Well, yes. The following code:

module main;

void main ()
{
     auto tree = ["" : ["" : ""]];
}

Using DMD 1.065 results in:

Assertion failed: (0), function toExpression, file init.c, line 437.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list