JB : well a ; is missing here (it wasn't a copy/paste !) in Delphi for Windows, the @ is…
+ From: Jean B�nard
+
+ 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 !
Marc
