InvalidMemoryOperationError from File.byLine()?
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jun 2 13:30:00 PDT 2015
On 6/2/15 3:57 PM, Stiff wrote:
> Here's the least code I can reproduce it with:
>
> //appropriate imports here
>
> void main(string[] args)
> {
> auto groupFile = new File(args[1]);
> int groupNum = 0;
> foreach (groupLine; groupFile.byLine()){
> writeln(groupNum);
> groupNum++;
> }
> }
>
> Data (i.e. groupFile, 2 lines):
>
This looks strikingly similar to an issue already in bugzilla:
https://issues.dlang.org/show_bug.cgi?id=14578
Look at the description of comment 4.
I could not reproduce your error either (on OSX version 2.067.0). What
OS/arch are you using? I'll try it in linux.
-Steve
More information about the Digitalmars-d-learn
mailing list