[fpc-devel] Incompatible Types: got "untyped" expected "<procedure variable type of procedure(Pointer);Register>
Craig Peterson
craig at scootersoftware.com
Thu Jul 17 17:03:35 CEST 2008
> Matthias Gaertner wrote:
>> I'm getting a Error: Incompatible Types: got "untyped" expected
>> "<procedure variable type of procedure(Pointer);Register> when
>> compiling the following code. This happens when using default
>> parameter values.
> Use mode objfpc and CallBack:=@Proc.
Is there some reason why this can't be handled automatically in Delphi
mode? In the example (and every case where it's an issue in our code),
the callback is a procedure and doesn't return anything, so "Callback :=
Proc" isn't ambiguous.
Regards,
Craig Peterson
Scooter Software
More information about the fpc-devel
mailing list