Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
16
Task/Scope-modifiers/Oberon-07/scope-modifiers-1.oberon
Normal file
16
Task/Scope-modifiers/Oberon-07/scope-modifiers-1.oberon
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
MODULE D1;
|
||||
VAR x* : INTEGER (* x is visible (read-only) in other modules *)
|
||||
y, z : BOOLEAN; (* y and z are not visible to other modules *)
|
||||
PROCEDURE P1*; (* P1 can be called from other modules *)
|
||||
VAR lv1, lv2 : INTEGER;
|
||||
PROCEDURE Sub1;
|
||||
BEGIN (* Sub1 body *)
|
||||
(* lv1, lv2 not visible here *)
|
||||
END Sub1;
|
||||
BEGIN (* P1 body *)
|
||||
(* x, y, z, lv1, lv2 and Sub1 visible here *)
|
||||
END P1;
|
||||
|
||||
BEGIN (* D1 body *)
|
||||
(* x, y, z and P1 visible here *)
|
||||
END D1.
|
||||
6
Task/Scope-modifiers/Oberon-07/scope-modifiers-2.oberon
Normal file
6
Task/Scope-modifiers/Oberon-07/scope-modifiers-2.oberon
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
MODULE U1;
|
||||
IMPORT D1;
|
||||
VAR v1, v2 : INTEGER;
|
||||
BEGIN
|
||||
(* as well as v1 and v2, D1.x and D1.P1 are visible here *)
|
||||
END U1.
|
||||
Loading…
Add table
Add a link
Reference in a new issue