tasks a-s

This commit is contained in:
Ingy döt Net 2013-04-10 23:57:08 -07:00
parent 47bf37c096
commit b83f433714
12433 changed files with 156208 additions and 123 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;