Re: Address of an element of AA

2016-04-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/2/16 10:22 AM, Temtaime wrote: Hi ! I can't find this in specs. If i add an element to AA: aa[10] = 123; Will &aa[10] be always the same (of course i don't remove that key) ? Thanks for a reply. I think specs should be enhanced. Depends on your definition of "always". As long as you don

Re: Address of an element of AA

2016-04-02 Thread Ozan via Digitalmars-d-learn
On Saturday, 2 April 2016 at 14:22:01 UTC, Temtaime wrote: Hi ! I can't find this in specs. If i add an element to AA: aa[10] = 123; Will &aa[10] be always the same (of course i don't remove that key) ? Thanks for a reply. I think specs should be enhanced. Running following int aa

Re: Address of an element of AA

2016-04-02 Thread Ali Çehreli via Digitalmars-d-learn
On 04/02/2016 07:22 AM, Temtaime wrote: Hi ! I can't find this in specs. If i add an element to AA: aa[10] = 123; Will &aa[10] be always the same (of course i don't remove that key) ? Thanks for a reply. I think specs should be enhanced. No, the underlying buffer can be relocated when the ha

Address of an element of AA

2016-04-02 Thread Temtaime via Digitalmars-d-learn
Hi ! I can't find this in specs. If i add an element to AA: aa[10] = 123; Will &aa[10] be always the same (of course i don't remove that key) ? Thanks for a reply. I think specs should be enhanced.