> Does anyone know how to call an Ada 95 function by address
> (if possible)? I
> know you can
> in C/C++.
type Trig_Spec is access function(Theta : Radians) return Float;
pragma Convention(StdCall, Trig_Spec); -- StdCall or whatever
A_Function : Trig_Spec;
...
A_Function := -- get a pointer from C program, "access
xyz", --
System.Address_To_Access_Conversions, or whatever
Y := A_Function(X);