[fpc-devel] "Blank slate" next version of FPC

Martin Frb lazarus at mfriebe.de
Wed Feb 20 15:57:18 CET 2019


On 20/02/2019 15:46, Paul van Helden wrote:
> On Wed, Feb 20, 2019 at 4:35 PM Dimitrios Chr. Ioannidis via fpc-devel 
> <fpc-devel at lists.freepascal.org 
> <mailto:fpc-devel at lists.freepascal.org>> wrote:
>
>       Even if declaring variables as close as possible to where the
>     variable will be used ( debugging wise not readability wise )
>     leads to more correct code, the problem is to avoid the temptation
>     to use them in other places too.
>
> Variables declared within a begin...end cannot be used elsewhere. 
> (E.g. for var I:=0 to .. won't let you use I after the loop)

for var i:=0 to 9 begin end;

That "i" is declared outside the begin end.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190220/daba6b0b/attachment.html>


More information about the fpc-devel mailing list