16 Nov
2000
16 Nov
'00
2:40 p.m.
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 -- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20001116 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net