bug in assigning to dynamic array element

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 1 04:56:42 PDT 2014


On Sat, 01 Nov 2014 11:31:51 +0000
anonymous via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> I don't know how D defines this, and I couldn't find anything but
> a forum discussion [1] (which I didn't read all of). But unless
> it's explicitly stated that the right-hand side is evaluated
> first, there is no bug.
there is. compiler generates code that modifies random memory
addresses. this is absolutely unacceptable. and this is just illogical
if we want dynamic arrays to look and work like "normal" arrays.
besides, it's easily fixable without any changes in evaluation order.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141101/f8541afd/attachment.sig>


More information about the Digitalmars-d mailing list