importing a symbol without specifying a subpackage name

Mike Parker aldacron at gmail.com
Wed Sep 16 13:35:35 UTC 2020


On Wednesday, 16 September 2020 at 13:30:57 UTC, 60rntogo wrote:

>
> then saying "import foo : Bar;" yields an error "module foo is 
> in file 'foo.d' which cannot be read". I'm curious, how is this 
> behavior achieved in the standard library?

To expand on Adam's reply:

https://dlang.org/spec/module.html#package-module


More information about the Digitalmars-d-learn mailing list