Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,2 +0,0 @@
|
|||
type Int_Access is access Integer;
|
||||
Int_Acc : Int_Access := new Integer'(5);
|
||||
|
|
@ -1 +0,0 @@
|
|||
type Safe_Int_Access is not null access Integer;
|
||||
|
|
@ -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
|
||||
|
|
@ -1 +0,0 @@
|
|||
type Safe_Int_Ptr is not null access all Integer;
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
Var : Integer;
|
||||
Var_Address : Address := Var'Address;
|
||||
|
|
@ -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
|
||||
|
|
@ -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;
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
type Container is array (Positive range <>) of Element;
|
||||
for Item of Container loop
|
||||
Do_Something(Item);
|
||||
end loop;
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
01 ptr USAGE IS POINTER TO Some-Type.
|
||||
01 prog-ptr USAGE IS PROGRAM-POINTER TO "some-program".
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
01 heap-item PICTURE IS X, BASED.
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
ALLOCATE heap-item RETURNING ptr
|
||||
*> ...
|
||||
FREE ptr
|
||||
|
|
@ -1 +0,0 @@
|
|||
SET prog-ptr TO ENTRY "some-program"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
SET ptr1 UP BY 10
|
||||
SET ptr2 DOWN BY LENGTH OF foo
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
SET ptr1 TO ptr2 *> ptr1 points to where ptr2 points
|
||||
SET ptr2 TO ADDRESS OF ptr3 *> ptr2 points to ptr3
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
SET ADDRESS OF foo TO ptr
|
||||
MOVE "bar" TO foo
|
||||
|
|
@ -1 +0,0 @@
|
|||
01 obj USAGE IS OBJECT-REFERENCE "some-object".
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
INVOKE SomeClass "new" RETURNING obj-ref
|
||||
SET another-obj-ref TO obj-ref
|
||||
Loading…
Add table
Add a link
Reference in a new issue