[phobos] [D-Programming-Language/phobos] 10afee: Make joiner (with separator) work with forward ran...

GitHub noreply at github.com
Mon Dec 31 12:13:30 PST 2012


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 10afee97c4a0e1c65e3d07958563d2130713ca1d
      https://github.com/D-Programming-Language/phobos/commit/10afee97c4a0e1c65e3d07958563d2130713ca1d
  Author: H. S. Teoh <hsteoh at quickfur.ath.cx>
  Date:   2012-12-30 (Sun, 30 Dec 2012)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Make joiner (with separator) work with forward ranges and transient ranges.

This is for the variant of joiner that takes a separator.

Restructure algorithm to not call .popFront while we're still using
.front.

Make sure we .save subranges when we're exporting .save, since RoR.save
does not guarantee the state of subranges are also .save'd.


  Commit: 4e329dc4b1d716a926b40f5d8d92b75317716524
      https://github.com/D-Programming-Language/phobos/commit/4e329dc4b1d716a926b40f5d8d92b75317716524
  Author: H. S. Teoh <hsteoh at quickfur.ath.cx>
  Date:   2012-12-30 (Sun, 30 Dec 2012)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Add unittests for new joiner with separator.

Comment out assert which will segfault when passed a range of class
objects, because the .init value of a class object is null, and
.init.empty is a null dereference.


  Commit: d442a0322fb629f285a293db5c3e1b5b2c688182
      https://github.com/D-Programming-Language/phobos/commit/d442a0322fb629f285a293db5c3e1b5b2c688182
  Author: H. S. Teoh <hsteoh at quickfur.ath.cx>
  Date:   2012-12-31 (Mon, 31 Dec 2012)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Explain necessity of setItem being a mixin.


  Commit: 88052ce7a87b2c9d465b2aea163d001c9b8d9cf6
      https://github.com/D-Programming-Language/phobos/commit/88052ce7a87b2c9d465b2aea163d001c9b8d9cf6
  Author: Andrei Alexandrescu <andrei at erdani.com>
  Date:   2012-12-31 (Mon, 31 Dec 2012)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Merge pull request #1020 from quickfur/joiner_sep_fixes

Fix transient and forward range bugs in joiner with separator


Compare: https://github.com/D-Programming-Language/phobos/compare/bdcf9195cb85...88052ce7a87b


More information about the phobos mailing list