[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

another question : arrays of functions ???

From: Kay Hamacher
Subject: another question : arrays of functions ???
Date: Thu, 13 Jun 1996 19:38:56 +0200 (MET DST)


There is another question which comes up by thinking
of a solution for an exercise :

Is there a way to declare arrays of functions ?

I think of the possibilities of Pascal :
Var a : Array[1..20] Of Function(x:Real) : Real;

and then do callings like 
for i := 1 to 20 Do   b := b + a[i](3);


Kay Hamacher             InterNet : address@hidden

       WINDOWS : From the people who brought you edlin 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]