Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,2 +0,0 @@
type Int_Access is access Integer;
Int_Acc : Int_Access := new Integer'(5);

View file

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

View file

@ -1,7 +0,0 @@
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

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

View file

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

View file

@ -1,5 +0,0 @@
-- 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

@ -1,8 +0,0 @@
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

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

View file

@ -1,2 +0,0 @@
01 ptr USAGE IS POINTER TO Some-Type.
01 prog-ptr USAGE IS PROGRAM-POINTER TO "some-program".

View file

@ -1,6 +0,0 @@
01 heap-item PICTURE IS X, BASED.
PROCEDURE DIVISION.
ALLOCATE heap-item RETURNING ptr
*> ...
FREE ptr

View file

@ -1 +0,0 @@
SET prog-ptr TO ENTRY "some-program"

View file

@ -1,2 +0,0 @@
SET ptr1 UP BY 10
SET ptr2 DOWN BY LENGTH OF foo

View file

@ -1,2 +0,0 @@
SET ptr1 TO ptr2 *> ptr1 points to where ptr2 points
SET ptr2 TO ADDRESS OF ptr3 *> ptr2 points to ptr3

View file

@ -1,2 +0,0 @@
SET ADDRESS OF foo TO ptr
MOVE "bar" TO foo

View file

@ -1 +0,0 @@
01 obj USAGE IS OBJECT-REFERENCE "some-object".

View file

@ -1,2 +0,0 @@
INVOKE SomeClass "new" RETURNING obj-ref
SET another-obj-ref TO obj-ref