[fpc-pascal] with statement using mulltiple objects

Sven Barth pascaldragon at googlemail.com
Tue Sep 16 14:42:02 CEST 2014


Am 16.09.2014 12:37 schrieb "Mattias Gaertner" <nc-gaertnma at netcologne.de>:
>
> On Tue, 16 Sep 2014 07:26:24 -0300
> Philippe <philippe at quarta.com.br> wrote:
>
> >
> >
> > could the compiler avoid "with" pitfalls?
> >
> > now the compiler attach
> > a property to the closest "with" where it finds it.
> >
> > the compiler could
> > check if the property appears in another "with" of the "with" stack and
> > produce a message (hint, warning or error, which may be configurated).
> >
> >
> > is not it a way to make the "with" safe?
>
> How to get rid of the hint?

Either get rid of the "with" or use a compiler directive to disable it ;)

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140916/d086af34/attachment.html>


More information about the fpc-pascal mailing list