checkAccess

Check access to package/module p from scope sc.

Parameters

sc
Type: Scope*

scope from which to access to a fully qualified package name

p
Type: Package

the package/module to check access for

Return Value

Type: bool

true if the package is not accessible.

Because a global symbol table tree is used for imported packages/modules, access to them needs to be checked based on the imports in the scope chain (see https://issues.dlang.org/show_bug.cgi?id=313).

Meta