Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!dimacs.rutgers.edu!seismo!uunet!comp.vuw.ac.nz!canterbury!phys169 From: phys169@csc.canterbury.ac.nz Newsgroups: comp.lang.pascal Subject: Re: Procedures and functions as parameters (TP 5.5/6) Message-ID: <1991Feb5.094000.16@csc.canterbury.ac.nz> Date: 4 Feb 91 21:01:06 GMT References: <1991Feb4.141222.28662@odin.diku.dk> Lines: 14 In article <1991Feb4.141222.28662@odin.diku.dk>, ballerup@diku.dk (Per Goetterup) writes: > [stuff omitted] > procedure qaz(var f: function; .... ); > begin > writeln(f(23)); > end; > (1) define a type for the function and use that (another poster gave a good example) (2) use {$F+} to avoid stack problems. Mark Aitchison, Physics, University of Canterbury, New Zealand.