On Tuesday, 14 June 2016 at 01:05:46 UTC, Jonathan Marler wrote:
This code doesn't seem to work with rdmd.  Is this a bug?

  import std.stdio : byLine;
  int main(string[] args)
  {
    foreach(line; stdin.byLine) {
    }
    return 0;
  }

Compiler Output:
  Error: module std.stdio import 'byLine' not found

Try removing the 'byLine' from the import statement. The error message looks like it can't find the function 'byLine' in the std.stdio module. It isn't a free function, but one of File's methods.

Reply via email to