Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
29
Task/Scope-modifiers/Pascal/scope-modifiers.pas
Normal file
29
Task/Scope-modifiers/Pascal/scope-modifiers.pas
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
procedure super;
|
||||
var
|
||||
f: boolean;
|
||||
|
||||
procedure nestedProcedure;
|
||||
var
|
||||
c: char;
|
||||
begin
|
||||
// here, `f`, `c`, `nestedProcedure` and `super` are available
|
||||
end;
|
||||
procedure commonTask;
|
||||
var
|
||||
f: boolean;
|
||||
begin
|
||||
// here, `super`, `commonTask` and _only_ the _local_ `f` is available
|
||||
end;
|
||||
var
|
||||
c: char;
|
||||
|
||||
procedure fooBar;
|
||||
begin
|
||||
// here, `super`, `fooBar`, `f` and `c` are available
|
||||
end;
|
||||
var
|
||||
x: integer;
|
||||
begin
|
||||
// here, `c`, `f`, and `x`, as well as,
|
||||
// `nestedProcedure`, `commonTask`, `fooBar` and `super` are available
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue