[Issue 15459] stdin.byLine.each!(map!somefunc) compiles, fails to link with ld

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 25 05:44:51 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=15459

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dlang-bugzilla at thecybershad
                   |                            |ow.net
         Resolution|---                         |INVALID

--- Comment #3 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
The example presented is invalid, as the parameter of each is not expected to
return anything, and map is lazy and by itself does not mutate global state (is
pure if its predicate is). It also doesn't compile any more in the latest
version of D.

I'm closing this for now, but please reopen if you can provide a working
practical example.

--


More information about the Digitalmars-d-bugs mailing list