delphi - How the compiler treat procedure/functions inside procedure/functions -
Some processes or functions are written in a different way, such as:
function Foo : Maximum Marks; Var A: string; Process bar; Start A: = '2'; // code end; Start A: = '1'; times; Results: = Streets (A); End; In this example, all variables declared in the FU function can be cut inside bars, how is the context shared?
The calling scope passes through its internal process as a hidden parameter to its frame pointer. The internal process can then use this hidden indicator to access variables in the external process.
Comments
Post a Comment