[lazarus] Calling boolean type function
Marc.Weustink at cuperus.nl
Thu Mar 30 04:56:34 EST 2000
+ From: Jean Bénard [mailto:jean.benard at domsoc.u-psud.fr]
+ At 02:09 30/03/00 +0100, you wrote:
+ >Hi, I got the following problem:
+ >function Test: Boolean
+ JB : well a ; is missing here (it wasn't a copy/paste !)
Nope this is a condensed form of a larger problem
+ > MyFunc := @Test;
+ in Delphi for Windows, the @ is refused as well
+ while it compiles without @
This is not the error !
+ >The compiler complains about:
+ > Error: Incompatible types: got "TMYFUNC" expected "BOOLEAN"
+ >Am I missing something ??
+ No : on the contrary, the @ should be dropped.
I'm not talking about delphi, I'm talking about FPC !
More information about the Lazarus