July 03, 2013 [phobos] [D-Programming-Language/phobos] 30790e: Fixup readln. | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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@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@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 |
Copyright © 1999-2021 by the D Language Foundation