2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -1,9 +1,9 @@
generic
type Swap_Type is private; -- Generic parameter
procedure Generic_Swap(Left : in out Swap_Type; Right : in out Swap_Type);
procedure Generic_Swap (Left, Right : in out Swap_Type);
procedure Generic_Swap(Left : in out Swap_Type; Right : in out Swap_Type) is
Temp : Swap_Type := Left;
procedure Generic_Swap (Left, Right : in out Swap_Type) is
Temp : constant Swap_Type := Left;
begin
Left := Right;
Right := Temp;

View file

@ -1,7 +1,7 @@
with Generic_Swap;
...
type T is ...
package T_Swap is new Generic_Swap(Swap_Type => T);
A,B:T;
procedure T_Swap is new Generic_Swap (Swap_Type => T);
A, B : T;
...
T_Swap(A,B);
T_Swap (A, B);