[comp.lang.pascal] Procedures and functions as parameters

phys169@csc.canterbury.ac.nz (02/05/91)

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.