Range violation error in the code

Ishan Thilina ishanthilina at gmail.com
Tue Apr 12 09:32:14 PDT 2011


>An array does not dynamically adjust its length when you assign an
>element, you have to assign the length explicitly before-hand.  Some
>dynamic languages do this (like Javascript), but not D.
>
>You can achieve this with an associative array:
>
>Node*[int] pointers;
>
>However, iterating an AA does not guarantee order.  So it depends on your
>requirements.
>
>-Steve

Thank you..!. That clarifies the things a lot. :)


More information about the Digitalmars-d-learn mailing list