Importing packages

Mart Roosmaa roosmaa at gmail.com
Sat Oct 28 04:40:50 PDT 2006


On Sat, 2006-10-28 at 12:39 +0200, Frank Benoit (keinfarbton) wrote:
> the import with a star, does now an import of all modules in the
> package, which have a 'public' module statement.

I'd say that importing with an asterisk is a bad practice, because it
hints, that the user could write something like this:
	import package.*ule
Or even:
	import pack*.*ul*.*

So, I must still insist on using just the package name and not the Java
style asterisk.

Mart




More information about the Digitalmars-d mailing list