[Issue 9498] Rang violation using AA

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 29 21:59:15 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9498



--- Comment #3 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-06-29 21:59:13 PDT ---
(In reply to comment #2)
> Note the ref return from getValue, which makes 'myValues[v]' an lvalue.  It
> could still be invalid, but not for the reasons stated.

This is irrelevant. The fact that function returns by ref indicates that value
should not be copied but returned by ref. If "myValue" was present that would
mean that pointer to the string is returned. Irrespective of how value is
returned, myValues[v] is invalid value here.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list