[Issue 19469] New: File.byLine reuses buffer
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Dec  8 13:13:16 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=19469
          Issue ID: 19469
           Summary: File.byLine reuses buffer
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: yshuiv7 at gmail.com
For example:
stdin.byLine.array;
Will give you an array of the same string. Although this is the correct
behavior, it will surprise someone who is new to the language.
I think we should make byLine duplicate the string by default.
--
    
    
More information about the Digitalmars-d-bugs
mailing list