Bug in Rdmd?
Jonathan Marler via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 13 20:15:04 PDT 2016
On Tuesday, 14 June 2016 at 01:35:32 UTC, Jeremy DeHaan wrote:
> 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.
It actually is a free function (not a method on the File object).
This works if you compile it with dmd, just not with rdmd.
More information about the Digitalmars-d-learn
mailing list