Re: read_lines bug
- Posted by petelomax Mar 03, 2019
- 1229 views
Link to source for the curious: https://github.com/OpenEuphoria/euphoria/blob/master/include/std/io.e#L1125
The lines are easy enough to remove, but why are they there in the first place?
If I had to guess, maybe they were part of testing and left in by mistake. It'd make sense to want to see some indicate of the lines being read.
Will removing them cause any other problems?
In my testing with the example provided above, no. But who knows what fringe case there might have been for those few lines to exist.
-Greg
I'm wondering if they improve manual console input. If you take that line out and then enter one, two, three, does the screen end up looking like "onetwothree"?
It could of course behave quite differently on linux and windows. (I've messed up my install a bit so I can't test this particular one on eui.)