Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,5 @@
package P is
... -- Declarations placed here are publicly visible
private
... -- These declarations are visible only to the children of P
end P;

View file

@ -0,0 +1,11 @@
package P is
type T is private; -- No components visible
procedure F (X : in out T); -- The only visible operation
N : constant T; -- A constant, which value is hidden
private
type T is record -- The implementation, visible to children only
Component : Integer;
end record;
procedure V (X : in out T); -- Operation used only by children
N : constant T := (Component => 0); -- Constant implementation
end P;

View file

@ -0,0 +1,4 @@
package body P is
-- The implementation of P, invisible to anybody
procedure W (X : in out T); -- Operation used only internally
end P;

View file

@ -0,0 +1,5 @@
private package P.Q is
... -- Visible to the siblings only
private
... -- Visible to the children only
end P.Q;