Re: [fpc-pascal] How to assign overloaded event handler?

2022-09-14 Thread Michael Van Canneyt via fpc-pascal
On Wed, 14 Sep 2022, Thomas Kurz via fpc-pascal wrote: I don't know whether this is actually a bug or not but I cannot find a hint in the documentation. It seems that methods assigned to an event handler are not allowed to be overloaded. Or, to be more precise, FPC always uses the first

[fpc-pascal] How to assign overloaded event handler?

2022-09-14 Thread Thomas Kurz via fpc-pascal
I don't know whether this is actually a bug or not but I cannot find a hint in the documentation. It seems that methods assigned to an event handler are not allowed to be overloaded. Or, to be more precise, FPC always uses the first declaration regardless whether it fits or not. Example: