[phobos] [D-Programming-Language/phobos] f9182e: Fix isInfinite conditions.

GitHub noreply at github.com
Thu Oct 18 11:52:17 PDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: f9182ecaab13e78e2d55d7f1837eb5959594aac0
      https://github.com/D-Programming-Language/phobos/commit/f9182ecaab13e78e2d55d7f1837eb5959594aac0
  Author: H. S. Teoh <hsteoh at quickfur.ath.cx>
  Date:   2012-10-17 (Wed, 17 Oct 2012)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Fix isInfinite conditions.

It makes little sense to join a range of infinite subranges, as we'll
never get beyond the first range, and besides, the outer range might be
empty so setting empty=false is wrong. OTOH, it's valid to have an
infinite range of subranges, in which case the output will be infinite.
So that should be the case that's checked for here.


  Commit: 1d375f432f69b9d25d0095858220fce6297fb6b2
      https://github.com/D-Programming-Language/phobos/commit/1d375f432f69b9d25d0095858220fce6297fb6b2
  Author: David Simcha <dsimcha at gmail.com>
  Date:   2012-10-18 (Thu, 18 Oct 2012)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Merge pull request #871 from quickfur/joiner_inf_constraint

Fix joiner output for infinite range of ranges


Compare: https://github.com/D-Programming-Language/phobos/compare/56ab2c3492ce...1d375f432f69


More information about the phobos mailing list