Importing packages

Frank Benoit (keinfarbton) benoit at tionex.removethispart.de
Sat Oct 28 03:39:48 PDT 2006


How about an attibute to the 'module' statement. E.g. public:

file mypackage/mymod1.d:
public module mypackage.mymod1;

file mypackage/mymod2.d:
module mypackage.mymod2;


the import with a star, does now an import of all modules in the
package, which have a 'public' module statement.

file main.d:
import mypackage.*; // imports mypackage.mymod






More information about the Digitalmars-d mailing list