Unlike Java, Scala has relative package names. For instance, you could write
package com.mycompany.tools; import mycompany._; // ..
which would import everything in package
com.mycompany. The problem is that the
then also looks in your package
scala, not the global one which is further outside, in the hierarchy.
The advantage of this scheme is that package names need not be absolute, therefore they can be shorter, and more easily adapted when you move things from one package to another.
You can still use an absolute package name in Scala, however, by simply prepending your package name with the special
_root_ path, as follows: