Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
type Int_Access is access Integer;
|
||||
Int_Acc : Int_Access := new Integer'(5);
|
||||
|
|
@ -0,0 +1 @@
|
|||
type Safe_Int_Access is not null access Integer;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
type Int_Ptr is access all Integer;
|
||||
Ref : Int_Ptr;
|
||||
Var : aliased Integer := 3;
|
||||
Val : Integer := Var;
|
||||
begin
|
||||
Ref := Var'Access; -- "Ref := Val'Access;" would be a syntax error
|
||||
|
|
@ -0,0 +1 @@
|
|||
type Safe_Int_Ptr is not null access all Integer;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
Var : Integer;
|
||||
Var_Address : Address := Var'Address;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
-- Demonstrate the overlay of one object on another
|
||||
A : Integer;
|
||||
B : Integer;
|
||||
for B'Address use A'Address;
|
||||
-- A and B start at the same address
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
type Container is array (Positive range <>) of Element;
|
||||
for I in Container'Range loop
|
||||
declare
|
||||
Item : Element renames Container (I);
|
||||
begin
|
||||
Do_Something(Item); -- Here Item is a reference to Container (I)
|
||||
end;
|
||||
end loop;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
type Container is array (Positive range <>) of Element;
|
||||
for Item of Container loop
|
||||
Do_Something(Item);
|
||||
end loop;
|
||||
Loading…
Add table
Add a link
Reference in a new issue