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,2 @@
type Int_Access is access Integer;
Int_Acc : Int_Access := new Integer'(5);

View file

@ -0,0 +1 @@
type Safe_Int_Access is not null access Integer;

View file

@ -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

View file

@ -0,0 +1 @@
type Safe_Int_Ptr is not null access all Integer;

View file

@ -0,0 +1,2 @@
Var : Integer;
Var_Address : Address := Var'Address;

View file

@ -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

View file

@ -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;

View file

@ -0,0 +1,4 @@
type Container is array (Positive range <>) of Element;
for Item of Container loop
Do_Something(Item);
end loop;