Bug 6483 – std.container.moveBack

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-08-12T13:03:00Z
Last change time
2012-07-23T17:16:50Z
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2011-08-12T13:03:25Z
documentation seems to be copied unchanged from moveFront in the table of container functions: "Destructively reads and returns the first element of the container" curious semantics, these.
Comment #1 by yao.gomez — 2012-02-06T16:41:28Z
Maybe just change it to: "Destructively reads and returns the last element of the container. The slot is not removed from the container; it is left initalized with T.init. This routine need not be defined if back returns a ref." But the last sentence is correct for the moveBack method?
Comment #2 by github-bugzilla — 2012-07-23T17:16:37Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/2b715883271d92eedeabe202cc9a3c606e468acd Merge pull request #713 from mylodon/fix6483 fix Issue 6483 - std.container.moveBack documentation