On 12/4/2014 10:24 AM, Lukasz Sokol wrote:
(OnTimer execution has the same problem : inevitably splits the procedure into
more procedures, that can no longer use same local variables and stuff)

you can't make them subroutines of the subroutine?

eg:

program foobie;

procedure dofoobie;

var
  thisfoo : integer = 0;
  thatfoo : integer = 0;

  procedure littlefoobie;
  begin
    inc(thisfoo,thatfoo);
    inc(thatfoo);
  end;

begin
  repeat
    begin
      littlefoobie;
      writeln(thisfoo,'    ',thatfoo);
    end;
  until thisfoo >= 25;
end;

begin
  dofoobie;
end.


--
 NOTE: No off-list assistance is given without prior approval.
       Please *keep mailing list traffic on the list* unless
       private contact is specifically requested and granted.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to