tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
11
Task/Scope-modifiers/Ada/scope-modifiers-2.ada
Normal file
11
Task/Scope-modifiers/Ada/scope-modifiers-2.ada
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue