Curl Global Community

Full Version: import public
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
{import * from A-PACKAGE}

と、

{import public * A-PACKAGE}

の違いがよくわかりません。

このインポート文がB-PACKAGEに書かれているとして、
後者は「B-PACKAGEをインポートすると、A-PACKAGEもインポートしたことになる」という理解でよいのでしょうか。

そうです。
CURL.GUI.STANDARD パッケージなどがこのタイプです。
"import public" means that any symbols imported from the package via "import public" can be re-exported by the current package. Otherwise symbols are imported just for use by the current package doing the importing, and can not be re-exported.