Call a function: Difference between revisions

no edit summary
No edit summary
Line 27:
A : Integer := F(12); -- F(12) is the same as F(12, 0)</lang>
 
* One can realize first-class functions by defining an access to a function as a parameter. Note that the function H below is a function with a fixed number of parameters (exactly two):<lang Ada>function H (Int: Integer;
Fun: not null access function (X: Integer; Y: Integer)
return Integer);
Anonymous user