[lazarus] Calling boolean type function

Marc Weustink weus at quicknet.nl
Wed Mar 29 19:05:57 EST 2000


Hi, I got the following problem:

function Test: Boolean
begin
end;

type
   TMyFunc = function: Boolean;
var
   b: Boolean;
   MyFunc: TMyfunc;

begin
   MyFunc := @Test;
   b := MyFunc;
end;

The compiler complains about:

   Error: Incompatible types: got "TMYFUNC" expected "BOOLEAN"

Am I missing something ??

Marc






More information about the Lazarus mailing list