Bug 17082 – assert in std.algorithm.iteration splitter example does not compile.
Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2017-01-09T22:18:00Z
Last change time
2017-07-12T16:42:23Z
Assigned to
nobody
Creator
donte5379
Comments
Comment #0 by donte5379 — 2017-01-09T22:18:05Z
A line in an example for splitter in std.algorithm.iteration does not compile. In the new style docs when you run the example you get a message saying "Temporarily unavailable". If you comment out the line the example passes.
The line is in the third splitter example.
assert(equal(splitter!(a => a.front == 1)(w), [ [[0]], [[2]] ]));
Comment #1 by greensunny12 — 2017-07-12T16:42:23Z
Thanks for reporting!
This was probably due to the low RAM of the DPaste backend. We switched to DTour as backend a few weeks a go and now all examples work online.
Btw on every PR we automatically check that all examples compile, so if you see a "Temporarily unavailable" that's most likely related to the backend then.