[Lazarus] Incompatible types for OnChange?
Marc Weustink
marc at dommelstein.net
Mon Jul 21 22:52:02 CEST 2008
Martin Friebe wrote:
> I noticed something, which I can't explain. Here is the question
>
> in ide/editoroptions is procedure:
> procedure GeneralCheckBoxOnChange(Sender: TObject; Index: integer);
>
> This is assigned (via the Resources of the form) to the TCheckBoxes on
> the editor-option's color page. ("TextBoldCheckBox").
>
> I understand that it compiles, since the compiler does include resource
> as they are. BUT it also executes? So on change calls a method with a
> signature different from what it should expect?
> How does that work?
My guess: The params are passed in a register, so no stack cleanup
needed and thus no corruption.
Marc
More information about the Lazarus
mailing list