[phobos] [D-Programming-Language/phobos] 30790e: Fixup readln.

GitHub noreply at github.com
Wed Jul 3 22:04:21 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 30790ee53c934eede4247c021d21caea6d9d95d3
      https://github.com/D-Programming-Language/phobos/commit/30790ee53c934eede4247c021d21caea6d9d95d3
  Author: unknown <monarchdodra at gmail.com>
  Date:   2013-07-03 (Wed, 03 Jul 2013)

  Changed paths:
    M std/stdio.d

  Log Message:
  -----------
  Fixup readln.

Fixes an issue where `readln!S` did not forward the type "S" in `stdin.readln()` => `stdin.readln!S()` (that was my mistake, sorry)

Fixes an issue where `File.readln!S` assumed S was an "immutable string type". This should work:

char[] buf;
buf = myFile.readln!(char[])();

While buf is not reused after each call, there should be nothing preventing the user for mutating if he so (explicitly) wishes.

Added/improved unittests a wee little bit.


  Commit: 2fb36f36b2690c971ad3015c8a13554f796f3c66
      https://github.com/D-Programming-Language/phobos/commit/2fb36f36b2690c971ad3015c8a13554f796f3c66
  Author: Jonathan M Davis <jmdavisProg at gmx.com>
  Date:   2013-07-03 (Wed, 03 Jul 2013)

  Changed paths:
    M std/stdio.d

  Log Message:
  -----------
  Merge pull request #1384 from monarchdodra/readln

Fixup readln.


Compare: https://github.com/D-Programming-Language/phobos/compare/3be7a03168c8...2fb36f36b269


More information about the phobos mailing list