Working with modules

Jacob Carlborg doob at me.com
Fri Feb 15 04:40:56 PST 2013


On 2013-02-15 12:04, Colin Grogan wrote:

> Ah ok, now I get it.

Note that in Java you declare a package wheres in D you declare a module.

If you have something like this in Java:

// Baz.java

package bar.foo;

You would do this in D:

// Baz.d

module bar.foo.Baz;

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list