Thread Rating:
  • 293 Vote(s) - 2.7 Average
  • 1
  • 2
  • 3
  • 4
  • 5
import public
12-20-2012, 07:22 PM,
#1
import public
{import * from A-PACKAGE}

と、

{import public * A-PACKAGE}

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

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

12-27-2012, 04:45 PM,
#2
RE: import public
そうです。
CURL.GUI.STANDARD パッケージなどがこのタイプです。
12-28-2012, 01:47 PM,
#3
RE: import public
"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.

Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('673')