procedure MainRoverCode is
procedure Nested1 is
procedure Nested2 is -- I AM ILLEGAL IN ADA/MINDSTORMS!
begin
end;
begin
end;
begin
end;
for I in 1..25 loop
end loop;
The
translator will create 2 global variables: one called "I" equal to 1
and another called "I_STOP" equal to 25. You can FORCE a reduction in
the number of global variables used by replacing the above for loop code with
while loop code:
procedure MainRoverCode is
I : Integer : = 1;
begin
while (I<25) loop
-- your code
I:=I+1;
end loop;
end