Skip to content

Variable Hierarchy #15

@jonas2602

Description

@jonas2602

Variables should be available to all functions in its scope. This includes functions that are further down in the hierarchy. Right now variables are only available to the block in which they are defined.

This should compile:

program HelloWorld;

procedure test();
var
    i: integer;
    procedure test2();
    begin
        i:= 2;
    end;
begin
    test2();
    writeln(i);
end;

begin
    test();
end.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions