Accessing Sub functions /procedures from DPR or other function / procedure in Delphi

Posted by HX_unbanned on Stack Overflow See other posts from Stack Overflow or by HX_unbanned
Published on 2010-05-19T14:26:57Z Indexed on 2010/05/19 14:30 UTC
Read the original article Hit count: 141

Hello, stackoverflowers :)

As much I know - Subroutines are with Private access mode to its parent unction / procedure, right?

Is there any way to access them from "outer-world" - dpr or other function / procedure in unit?

Also - which way takes more calcualtion and space to compiled file?

for example:

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?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about accessibility