Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-12

parentfp question/idea

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

fpc stores parentfp in debug info, which allows an IDE to detect nested procs, and check for variables in the parent frame.

however while good, this solution is not 100% (ok nothing ever is) haven't tested, but if memory serves....

procedure Outer;
var i: integer;
   procedure Middle;
     procedure Inner;
     begin
       writeln(i); // uses Outer
     end;
   var i: integer; // Middle, but not visible to Inner
   begin
   end;
begin
end;

This scoping isn't coverable by framefp?

The ide/question is (and yes, it is one of the ones: I am not the one to do it, so I can't expect anyone else....)

could "i" not be somehow encoded as a local variable? like i = framefp.i?

Martin

Reply by email