Thread overview | |||||
---|---|---|---|---|---|
|
July 01, 2012 [Issue 8333] New: std.Container.Array (and .Range) du not implement opIndexUnary | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8333 Summary: std.Container.Array (and .Range) du not implement opIndexUnary Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: monarchdodra@gmail.com --- Comment #0 from monarchdodra@gmail.com 2012-07-01 10:27:44 PDT --- This code does not compile: ---- import std.container; void main() { Array!int myList; myList.length = 2; auto range = myList[]; ++myList[0]; ++range[0]; } ---- Suggest adding: phobos / std / container.d l.1775 ---- void opIndexUnary(string op)(size_t i) { enforce(_a + i < _b && _b <= _outer._data._payload.length); mixin(op~"_outer._data._payload.ptr[_a + i];"); } ---- phobos / std / container.d l.1950 ---- /// ditto void opIndexUnary(string op)(size_t i) { mixin(op~"_data._payload[i];"); } ---- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 31, 2012 [Issue 8333] std.Container.Array (and .Range) du not implement opIndexUnary | ||||
---|---|---|---|---|
| ||||
Posted in reply to monarchdodra@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=8333 monarchdodra@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|nobody@puremagic.com |monarchdodra@gmail.com --- Comment #1 from monarchdodra@gmail.com 2012-07-31 04:01:54 PDT --- Being corrected in pull: https://github.com/D-Programming-Language/phobos/pull/716 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 17, 2012 [Issue 8333] std.Container.Array (and .Range) du not implement opIndexUnary | ||||
---|---|---|---|---|
| ||||
Posted in reply to monarchdodra@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=8333 monarchdodra@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from monarchdodra@gmail.com 2012-09-17 14:26:22 PDT --- Fixed https://github.com/D-Programming-Language/phobos/commit/caad7c5017a30d7d5afbe8ae7a7692d7cdd47b5e -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation