Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!almaak.usc.edu!ajayshah From: ajayshah@almaak.usc.edu (Ajay Shah) Newsgroups: comp.lang.pascal Subject: Passing a function as a parameter Message-ID: <30527@usc> Date: 20 Feb 91 09:58:32 GMT Sender: news@usc Organization: University of Southern California, Los Angeles, CA Lines: 39 Nntp-Posting-Host: almaak.usc.edu Originator: ajayshah@almaak.usc.edu 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. _______________________________________________________________________________