On Wed, 11 May 2011 12:07:31 +0200, Hans-Peter Diettrich
<drdiettri...@aol.com> wrote:
kingbiz...@gmail.com schrieb:
I would like to be able this:
[ some code after begin ]
DoSomething;
var I: Integer;
for I := 0 to 1000 do
DoAnotherThing(I);
[ inside the code ]
That's not good practice, in no programming language.
Better move the loop into a local procedure, where you can declare
really local variables.
Or make the loop variable completely implicit and thus 100% local to
the loop.
|for i : integer := 0 to 1000 do ...;
Vinzent.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel