[Issue 18476] New: -run should not only take the next argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 20 18:30:15 UTC 2018


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

          Issue ID: 18476
           Summary: -run should not only take the next argument
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: greensunny12 at gmail.com

echo "void main(){}" | dmd -run -c -

and fails with

---
Error: module -c is in file '-c.d' which cannot be read
import path[0] = /usr/include/dlang/dmd
---

I have seen people at my Meetup struggling with this and I was initially also
puzzled.
One really needs to know the implementation of mars.d to understand this.

--


More information about the Digitalmars-d-bugs mailing list