On Sun, 14 Sep 2014 11:58:22 +0200
Jürgen Hestermann <juergen.hesterm...@gmx.de> wrote:

> Am 2014-09-13 22:31, schrieb Marius:
>  > Mattias Gaertner wrote:
>  > All seasoned programmers know that and try to avoid the with statement.

The quote is from Marius, not from me.


> Realy? I love it. Consider these two varianst of code from one of my programs:
> 
> ---------------------------------------------------------
> with TreeRoot.SubDirs[Low(TreeRoot.SubDirs)]^ do
>     begin
>     DirLogged             := true;
>     DirHatFocus           := false;
>     SubDirsExpanded       := true;
>[...]
> ---------------------------------------------------------

and

---------------------------------------------------------
d:=TreeRoot.SubDirs[Low(TreeRoot.SubDirs)]; // local var d
d^.DirLogged             := true;
d^.DirHatFocus           := false;
d^.SubDirsExpanded       := true;
[...] ---------------------------------------------------------


Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to