Scope of import

Mike Parker aldacron at gmail.com
Sat May 15 07:19:08 UTC 2021


On Saturday, 15 May 2021 at 07:15:51 UTC, DLearner wrote:
> On Saturday, 15 May 2021 at 07:05:00 UTC, Mike Parker wrote:
>>
>> That's odd. What's your command line?
>>
> rdmd main.d

Then it must be an issue with rdmd. The following both work as 
expected, whether your the `import B;` in `main` is commented out 
or not:

dmd -i main.d
dmd main.d A.d B.d


More information about the Digitalmars-d-learn mailing list