[fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

Rainer Stratmann rainerstratmann at t-online.de
Tue May 5 23:03:33 CEST 2020


Am Dienstag, 5. Mai 2020, 22:53:53 CEST schrieb Bart via fpc-pascal:
> On Tue, May 5, 2020 at 10:05 PM Rainer Stratmann
> 
> <rainerstratmann at t-online.de> wrote:
> > Did I overlooked something?
> 
> Your function returns a functiontype?
> Is that intended?

No :-)
But that worked a long time (2 years or so) with FPC 2.6.4

procvar points either to a library function or to a default function.

In case of the shown example it was the default function.

May be a pointer to zero was not executed in FPC 2.6.4 because it does not 
make sense. And in FPC 3.0.4 the compiled program executes a pointer to zero 
(nil). Or similar.

Anyway it runs well now. Thanks!
 
> --
> Bart
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal






More information about the fpc-pascal mailing list