[fpc-devel] Incompatible Types: got "untyped" expected "<procedure variable type of procedure(Pointer);Register>

Micha Nelissen micha at neli.hopto.org
Thu Jul 17 17:16:49 CEST 2008


Craig Peterson wrote:
>> 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.

Ambiguity depends on whether it takes parameters or not. Return value 
would be context sensitive. One doesn't want a context sensitive language.

Micha



More information about the fpc-devel mailing list