[fpc-pascal] with statement using mulltiple objects

Flávio Etrusco flavio.etrusco at gmail.com
Wed Sep 17 03:11:20 CEST 2014

On Tue, Sep 16, 2014 at 8:09 PM, Philippe <philippe at quarta.com.br> wrote:
> on compiler implementation:
> I read in this list that the group lost months due a "with" problem.
> People use "with", and I guess lot of people use it!
> I checked the reference
> http://www.freepascal.org/docs-html/ref/refsu58.html#x155-16500013.2.8 and
> there is not any warning ... just:
> The statement
> With A,B,C,D do Statement;
> is equivalent to
> With A do
>  With B do
>   With C do
>    With D do Statement;
> without any warning ...

Why would it? As people replied in your thread, this has always been
the behavior (at least in TP and Delphi), so if anything the only
thing lacking is some minor documentation.
Also please don't hijack threads.


More information about the fpc-pascal mailing list