[Lazarus] How well should Lazarus check method parameters?

Flávio Etrusco flavio.etrusco at gmail.com
Fri Feb 24 13:13:13 CET 2012


On Wed, Feb 22, 2012 at 6:55 PM, Mark Morgan Lloyd
<markMLl.lazarus at telemetry.co.uk> wrote:
> I've just spotted this in my code:
>
(...)
> ..
> 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.
>
> Shouldn't either the IDE or the runtimes pick up this error?
>
> --
> Mark Morgan Lloyd

I can't see any way to justify this not being catch by the compiler as
an _error_. We should report it in the fpc-devel ML or in mantis.

Best regards,
Flávio




More information about the Lazarus mailing list