[Issue 2547] Array Ops should check length, at least when bounds checking is on
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 20 23:37:21 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=2547
--- Comment #4 from github-bugzilla at puremagic.com 2012-07-20 23:37:16 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/9c80b3ce49a77f960674ff38df492ec7413376e1
Issue 2547 - Array Ops should check length, at least when bounds checking is on
When array bounds checking is enabled, turn
`arrayOp(a, b, ...)`
into
```
auto tmpa = a, tmpb = b, tmpc = c;
assert(tmpa.length == tmpb.length && tmpa.length == tmpc.length && ..., "length
mismatch for <array op name>");
arrayOp(tmpa, tmpb, tmpc, ...)
```
https://github.com/D-Programming-Language/dmd/commit/34b0f7eba7ada6c39aafc8d19eee3887fa84bf3e
Merge pull request #693 from yebblies/issue2547
Issue 2547 - Array Ops should check length, at least when bounds checking is on
--
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