[Issue 5555] [AA] Built-in associative arrays in pure nothrow functions

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 12 05:34:49 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=5555

Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin.reg at gmail.com

--- Comment #7 from Denis Shelomovskij <verylonglogin.reg at gmail.com> ---
Some cases of this issue are already fixed. `byKey` and `byValue` will be
marked as `pure nothrow` in this pull:
https://github.com/D-Programming-Language/druntime/pull/838

If the pull is merged only the following AA related functions will remain
unmarked:
* `aa.get(...)`
    because of `lazy inout(V) defaultValue`
* `foreach(key, value; aa)` aka `_aaApply2`
    because it accepts delegate `dg2_t dg` with unknown attributes
* `aa.dup`
    because it uses `foreach(key, value; aa)`

--


More information about the Digitalmars-d-bugs mailing list