Bug 16256 – std.experimental.logger cant log a dstring properly
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-07-09T07:32:13Z
Last change time
2018-01-05T13:28:57Z
Assigned to
No Owner
Creator
joeyemmons
Comments
Comment #0 by joeyemmons — 2016-07-09T07:32:13Z
void main(){
import std.experimental.logger;
log("123456789"d);
}
Outputs
2016-07-09T03:30:11.093:main.d:main:3 112123123412345123456123456712345678123456789
Looks like it is incrementally printing arg[0..n] for n = 1 to arg.length
Comment #1 by joeyemmons — 2016-07-09T08:25:50Z
Actually it seems to have nothing to do with it being a dstring and more to do with it just being a range... Same thing happens if you do
log(map!"a"("123456789"));
Comment #2 by github-bugzilla — 2017-05-26T13:30:59Z