[Issue 15735] std.algorithm.iteration.splitter returns empty range

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15735

--- Comment #1 from Dragos Carp  ---
Fixed with https://github.com/D-Programming-Language/phobos/pull/4030

--


[Issue 15735] New: std.algorithm.iteration.splitter returns empty range

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15735

  Issue ID: 15735
   Summary: std.algorithm.iteration.splitter returns empty range
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: major
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: dragosc...@gmail.com

The docs say "If the empty range is given, the result is a range with one empty
element."

---
unittest
{
import std.algorithm : equal, splitter;

assert("".splitter('_').equal([""])); // asserts: returned range is empty
}

--


[Issue 15734] New: Need this for map

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15734

  Issue ID: 15734
   Summary: Need this for map
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: regression
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: temta...@gmail.com

import std.algorithm;

class S {
int foo(int a) { return a; }

void test() {
[ 1, 2, 3 ].map!foo;
}
}

Error: this for foo needs to be type S not type MapResult!(foo, int[])

changing foo to (a => foo(a))
makes it compileable

--


[Issue 14327] Unhandled exception from writeln() in C++/D application

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14327

--- Comment #18 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/de2788d911129545531e0e42d1c8630b3f406e7c
Merge pull request #1412 from rainers/issue_14327

https://github.com/D-Programming-Language/druntime/commit/82715d0589d815a77c7139a59193899866a35f02
fixed Issue 14327 - Unhandled exception from writeln()

--


[Issue 15430] [REG2.069] amdMmx hangs up

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15430

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/97d3999a4f3ab3c8409060bc6bb381fcc2a43c54
fix Issue 15430 - amdMmx hangs up

https://github.com/D-Programming-Language/druntime/commit/d0e4dc96a265ae562e98ad81d0a7d56b752b48ef
Merge pull request #1463 from MartinNowak/fix15430

--


[Issue 15334] [REG 2.069] OS X core.time ticksPerSecond calculation is incorrect

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15334

--- Comment #3 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/fdad9f502dc3a5cac0bac0cfa7d55fc4b7c273b5
Merge pull request #1432 from smolt/ticksPerSecOSXFixStable

--


[Issue 15590] 0 coverage should be ignored in __ctfe branches

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15590

b2.t...@gmx.com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |---

--


[Issue 15590] 0 coverage should be ignored in __ctfe branches

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15590

b2.t...@gmx.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID
Summary|the coverage fails in   |0 coverage should be
   |__ctfe branches |ignored in __ctfe branches

--- Comment #1 from b2.t...@gmx.com ---
Since coverage is generated by the target application, it cannot know if the
compiler has run it.

--


[Issue 15730] invalid template merging in tuple foreach

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15730

Ketmar Dark  changed:

   What|Removed |Added

 CC||ket...@ketmar.no-ip.org

--


[Issue 15596] strip with delimiter?

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15596

--- Comment #6 from ag0ae...@gmail.com ---
(In reply to ag0aep6g from comment #5)
> (In reply to b2.temp from comment #4)
> > Maybe a note in the std.string doc: "see also: for more generic strip
> > funcyion..."
> 
> Already there: "There is a rich set of functions for string handling defined
> in other modules. Functions related to Unicode and ASCII are found in
> std.uni and std.ascii, respectively. Other functions that have a wider
> generality than just strings can be found in std.algorithm and std.range."

Whoops, you were talking about strip's docs specifically. Sorry for the noise.

--


[Issue 15596] strip with delimiter?

2016-02-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15596

ag0ae...@gmail.com changed:

   What|Removed |Added

 CC||ag0ae...@gmail.com

--- Comment #5 from ag0ae...@gmail.com ---
(In reply to b2.temp from comment #4)
> Maybe a note in the std.string doc: "see also: for more generic strip
> funcyion..."

Already there: "There is a rich set of functions for string handling defined in
other modules. Functions related to Unicode and ASCII are found in std.uni and
std.ascii, respectively. Other functions that have a wider generality than just
strings can be found in std.algorithm and std.range."

--