Bug in Rdmd?

Jeremy DeHaan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 13 18:35:32 PDT 2016


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.


More information about the Digitalmars-d-learn mailing list