On Monday, 5 May 2014 at 13:51:12 UTC, Mike Parker wrote:
On 5/5/2014 8:17 PM, "Nordlöw" wrote:
One thing though: You cannot call a filename the same as a
keyword:
package.d because
import elf.package;
fails with
fs.d(144,12): Error: identifier expected following package
Actually, package.d is a feature which was added not so long
ago. Given:
- foo
-- bar.d
-- baz.d
-- package.d
Where package.d looks like:
module foo.package;
public import foo.bar, foo.baz;
In client code, you can do this:
import foo;
And all of foo.bar and foo.baz will be visible. But you are
correct that one cannot explicitly import 'foo.package'
Aha!
Thx