Is it possible to call global methods from within a class where they are obscured by member functions of the same name?
I know in C++ you have the following syntax:
int var = 0;
void temp() {
int var = 2;
::var = var;
} //Global var is set to 2
Run Code Online (Sandbox Code Playgroud)
Ale*_*exV 12
是的,您可以使用单位的名称而不是::
喜欢:
unit1.var := 2;
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参阅:http: //delphi.about.com/od/beginners/l/aa060899.htm
| 归档时间: |
|
| 查看次数: |
1507 次 |
| 最近记录: |