[Issue 18477] -run isn't DRY and leads to unexpected errors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 20 19:26:18 UTC 2018


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

Timothee Cour <timothee.cour2 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2 at gmail.com

--- Comment #1 from Timothee Cour <timothee.cour2 at gmail.com> ---
or using har syntax (https://github.com/marler8997/har):

```har
--- test.d
import std.stdio;
void main()
{
    writeln("Hello D", __FILE__);
    import bar;
    foo();
}
--- bar.d
void foo(){}
```

another issue is -run disallows things like:
`dmd **/*.d -run`
and leads to complex workarounds

--


More information about the Digitalmars-d-bugs mailing list