On Saturday, 19 January 2019 at 20:38:00 UTC, faissaloo wrote:
On Saturday, 19 January 2019 at 20:07:34 UTC, Rubn wrote:
On Saturday, 19 January 2019 at 17:49:31 UTC, faissaloo wrote:
[...]

If you look at the implementation, "lines" is a struct.

https://github.com/dlang/phobos/blob/v2.084.0/std/stdio.d#L4330

[...]

Ah that makes some sense, thanks for the explanation.

If you import symbols explicitly, you'd have known.

Probably in your code:

    import std.file;

What should be there:

    import std.file : File, lines;

If lines is a member of the File struct, the import fails. If lines is not a member of File, not importing it fails. You get more detailed information.
Using import bind lists [1] usually is a good idea.

[1] https://dlang.org/spec/module.html#import-declaration

Reply via email to