http://d.puremagic.com/issues/show_bug.cgi?id=9957
--- Comment #5 from Kenji Hara <k.hara...@gmail.com> 2013-04-23 01:56:43 PDT --- (In reply to comment #4) > (In reply to comment #2) > > I think it should work. Manifest constant with array value will create array > > literal, so: > > > > auto a = A[0].ptr; > > > > will be optimized to: > > > > auto a = [1.0, 2.0, 3.0].ptr; > > I think that's not valid. That isn't A[0].ptr It's A[0].dup.ptr. Hmm... Sure, in this case the array literal `[1.0, 2.0, 3.0]` has a _static array type_ float[3]. So getting its memory address is not well defined in current D language spec. I'd like to hear Walter's opinion. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------