<html><body><div class="gmail_quote">
    <div dir="ltr" class="gmail_attr">On Feb 21, 2026 at 12:19:10 AM, Martin Frb via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div>
    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite">
        <div>E.g. currently <br>
    <br>
    procedure foo;<br>
    var SeenByBar: byte;<br>
       procedure Bar;<br>
       begin {} end;<br>
    var NOT_SeenByBar: byte;<br>
    begin {} end;<br>
    <br>
    FPC currently does not include the info that the 2nd var is not in
    scope for Bar. There would afaik be several ways. So not a Dwarf
    problem. <br></div>
    </blockquote>
</div>
<br>
<div dir="ltr">
    Oh yes not having the captured variables for nested procedures is VERY annoying and wastes lots of time. That's probably the biggest problem I have but I don't think that has anything to do with DWARF, just the compiler never implemented it.</div></body></html>