据我所知,子例程具有私有访问模式,只能由其父函数/过程访问,对吗?
是否有办法从“外部世界”-dpr或单元中的其他函数/过程访问它们?
此外,哪种方法需要更多的计算和编译文件空间?
例如:
是否有办法从“外部世界”-dpr或单元中的其他函数/过程访问它们?
此外,哪种方法需要更多的计算和编译文件空间?
例如:
function blablabla(parameter : tparameter) : abcde;
procedure xyz(par_ : tpar_);
begin
// ...
end;
begin
// ...
end;
procedure albalbalb(param : tparam) : www;
begin
xyz(par_ : tpar_); // is there any way to make this function public / published to access it therefore enabling to call it this way?
end;
// all text is random.
// also, is there way to call it from DPR in this manner?
// in C++ this can be done by specifing access mode and/or using "Friend" class .. but in DELPHI?