[fpc-devel] Question on function overloading and pointer types
Bart
bartjunk64 at gmail.com
Tue Feb 25 23:27:12 CET 2025
On Tue, Feb 25, 2025 at 10:35 PM Tomas Hajny via fpc-devel
<fpc-devel at lists.freepascal.org> wrote:
> No, it's because you used a different compilation mode _and_ FPC treats
> @ differently depending on the compilation mode. If you change "{$mode
> fpc}" to "{$mode delphi}" <snip> I guess that Delphi 7 might give you the same
> result, but I might be wrong.
(Slaps himself in the face...)
Yeah, right.
Ifdef-ed the @ in @dummyproc for fpc only and D7 outputs the same.
Still leaves my questions though:
> Q1: do we have some documentation about this overload selection process?
> Q2: if not, then is the observed behaviour of current fpc by design or
> undefined?
--
Bart
More information about the fpc-devel
mailing list