[Issue 9253] Review Phobos algorithms and make them transient-safe where possible

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Aug 31 14:13:47 PDT 2017


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

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---

--- Comment #5 from hsteoh at quickfur.ath.cx ---
There must be some misunderstanding here.  What has annotations got to do with
transient ranges?

Transient ranges, as referred to in this bug, are ranges where .front may
mutate once .popFront is called, thereby making it invalid for code to cache
.front by assigning to a local variable and referring to the variable later
after .popFront is called.  AFAIK there are no annotations that can be used for
this.

Many algorithms that currently break with transient ranges actually *can* be
re-implemented in a way that doesn't break, and without undue overhead. 
Tracking these algorithms is the purpose of this issue.

--


More information about the Digitalmars-d-bugs mailing list