Hi!
Eike Lange wrote:
I'm trying to cast a Function to a procedure, but my little program fails with a "Segmentation fault".
Could anyone please tell me, what is wrong? [...] BarFunc := bar(FooFunc(2));
You are casting the result of the function call - the integer 2 - to a `Barfunc'.
Please try (untested):
BarFunc := bar(@FooFunc);
Hope this helps,
Peter