[Lazarus] How well should Lazarus check method parameters?
Sven Barth
pascaldragon at googlemail.com
Thu Feb 23 09:54:52 CET 2012
Am 22.02.2012 22:49 schrieb "Mattias Gaertner" <nc-gaertnma at netcologne.de>:
>
> On Wed, 22 Feb 2012 20:55:01 +0000
> Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:
>
> > I've just spotted this in my code:
> >
> > procedure FormCloseQuery(Sender: TObject; CanClose: boolean);
> > ..
> > procedure TListForm.FormCloseQuery(Sender: TObject; CanClose: Boolean);
> >
> > Those were inserted by some old version of the IDE, presumably the
> > current version inserts the missing var.
>
> I don't remember such a bug, but I'm not sure. Maybe it was there for a
> very short time and you were just unlucky.
>
>
> > Shouldn't either the IDE or the runtimes pick up this error?
>
> It's valid code. What do you expect?
Huh? And what will happen if this handler gets assigned to OnCloseQuery
through the LFM?
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120223/9b287c6b/attachment-0003.html>
More information about the Lazarus
mailing list