[fpc-devel] overloaded functions - order of resolving ?

Virgo Pärna virgo.parna at mail.ee
Fri Mar 18 13:43:49 CET 2022


On Thu, 17 Mar 2022 15:24:19 +0100, Martin Frb via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
> var  aByte: byte;  aWord: word;  aString: string;
> begin
>    Foo(11, 1);         // byte
>    Foo(21, aByte);      // byte
>    Foo(22, aWord);      // byte

	What are the values of aByte and aWord?
	I would suggest testing with aWord value greater then 255.  

-- 
Virgo Pärna 
virgo.parna at mail.ee



More information about the fpc-devel mailing list