Inserting into an Associative array?
Posted
by
RedShft
on Stack Overflow
See other posts from Stack Overflow
or by RedShft
Published on 2012-04-04T18:50:39Z
Indexed on
2012/04/05
17:30 UTC
Read the original article
Hit count: 211
d
I'm playing around with associative arrays right now and I can't seem to figure out how to add additional objects to the array. I tried insert but it doesn't recognize both arguments.
Also, if I do this it produces an error:
Node[bool] test;
Node node;
Node[bool] temp = [ false:node ];
test ~= temp;
//Error 1 Error: cannot append type Node[bool] to type
//Node[bool] C:\Users\CP\Documents\Visual Studio
//2010\Projects\D\STDS\NPC.d 256
Does this mean you can't use the append operator on associative arrays ?
© Stack Overflow or respective owner