[fpc-pascal]1.0.6 problem

James Mills prologic at prologitech.com
Mon Feb 3 13:46:34 CET 2003


On Mon, Feb 03, 2003 at 01:37:34PM +0100, Jonas Maebe wrote:
> 
> On maandag, feb 3, 2003, at 13:24 Europe/Brussels, James Mills wrote:
> 
> >I just recently upgraded to FPC 1.0.6 (Debian testing-SID), one of my
> >programs now doesn't compile because of this error.
> >
> >functions.pas(42,2) Error: Incompatible types: got "<unknown type>" 
> >expected "<procedure variable type of 
> >function(PSTRING,LONGINT):AnsiString;>"
> 
> The reason that it compiled in 1.0.4, was a bug in that version of the 
> compiler. You can compile this code as-is in TP or Delphi mode. In FPC 
> or ObjFPC mode, you have to add an "@" in front of the procedure names 
> to get their addresses. In version 1.0.4, this extra @ in FPC mode was 
> already enforced in normal code, but not in typed constants. This 
> inconsistency was fixed in 1.0.6.

Ok thank you. I know it was inconsistant in 1.0.4, but ignored it as it
did compile properly ;) I would have spent ages figuring this out had
you not said it was an inconsistancy with 1.0.4. Thank you.

cheers
James
> 
> 
> Jonas
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list