What    |Removed                     |Added
                 CC|                            |

--- Comment #3 from 2012-10-16 13:28:26 PDT ---
One solution to avoid this problem is to modify byLine to perform a copy on
default and not perform it on request:

auto file = File("foo.txt", "r");
auto lineBuff = array(file.byLine());

==> good

auto file = File("foo.txt", "r");
auto lineBuff = array(file.byLine!false());

==> does't copy, lineBuff contains garbage

This makes the code safe (but a little slower) on default, when you don't know
what you are doing, and offers a simple way to have faster code when you know
what you are doing and you know you don't want a copy (this ides also follows
the general safety philosophy of D).

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to