The primary use for $declare1
is to generate non-recursive declarations for packages. Specifically, the non-recursive declaration $declare1 ${<package>}
will NOT generate declarations of any sub-packages nested in <package>
.
In the example package DbC
shown above, the non-recursive declaration $declare1 ${DbC}
will NOT declare sub-packages DbC::active
and DbC::inactive
. Instead, these sub-packages are generated separately surrounded by the #if/#else
directives.