| Import. expression yields expression and is used to skip tests for a global reference within a class. |
| Import may alternatively be used as an Option to Class. |
This loads the package.
By default, checks are executed during the definition of a class that emit a warning for "undeclared" symbols. The next class causes such a warning.
This warning does not affect the functionality. The symbol can be "imported" in two ways. First, it can be qualified.
Second, an Import option can be used. Any option must be given after all type specifications (class name, superclass, interfaces). Each symbol can be wrapped into HoldPattern to prevent evaluation.
The Import modifier becomes essential, if there is a conflict with a reference to a global symbol.
|