[comp.lang.pascal] Passing a function as a parameter

ajayshah@almaak.usc.edu (Ajay Shah) (02/20/91)

I'm sure this has been thrashed a thousand times before, and a
RTFM answer (along with a page number) will be fine.

Question:

	I have 

		function f1(x:double):double;
		begin
		end;

		function f2(x:double):double;
		begin
		end;

	I would like to write a procedure

		procedure plot(function of double);

	so as to be able to call it as follows:

		plot(f1);
		plot(f2);

	to display plots of function 1 and function 2 in order.


Exactly how does one declare procedure plot in this?

Thanks,

	-ans.

-- 
_______________________________________________________________________________
Ajay Shah, (213)734-3930, ajayshah@usc.edu
                              The more things change, the more they stay insane.
_______________________________________________________________________________