tcak:
One way I achieved it, though I cannot put namespace on it.
file: project.d
==================
module project;
class project{}
D modules can contain lot of stuff, like variables, constants,
enums, types, structs, etc. And you usually put more than one
class in each D module. Also D class names should be capitalized
(like "Project").
When I do this, it works, but I cannot make it work with
namespace unfortunately.
What namespace? D has modules, unlike C++. In general it's a bad
idea to have inside a module a name (like a variable name or
struct name) equal to the module name, because it causes
confusion.
Please show what doesn't work.
Bye,
bearophile