Package Statement

The package statement changes the current package for the compiler and declares, it if required.

This page discusses:

See Also
Basics

Syntax



The package reference can be either DEFAULT or a sequence of identifiers.



Use

PACKAGE PackageRef;

The effect of a current package is to find or declare types using an unqualified name.

You can only declare a subpackage, if its parent package is already declared.

Examples

PACKAGE DEFAULT; // Sets the application default packages as current

PACKAGE MyCusto; // Declares package MyCusto and sets it as current

PACKAGE MyCusto.Impl; // Declares package Impl inside MyCusto and sets it as current