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 @@
VAR staticArray: ARRAY [1..10] OF INTEGER;

View file

@ -0,0 +1,2 @@
VAR staticArray := ARRAY [1..10] OF INTEGER {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
VAR staticArray2 := ARRAY [1..10] OF INTEGER {1, ..} (* Initialize all elements to 1. *)

View file

@ -0,0 +1,2 @@
TYPE TOpenIntArray = REF ARRAY OF INTEGER;
VAR openArray: TOpenIntArray;

View file

@ -0,0 +1 @@
openArray := NEW(TOpenIntArray, 10);

View file

@ -0,0 +1,6 @@
VAR
staticArraySize := NUMBER(staticArray);
staticArrayElement := staticArray[4];
openArraySize := NUMBER(openArray^); (* Note the dereference. *)
openArrayElement := openArray[9];

View file

@ -0,0 +1,2 @@
staticArray[4] := 100;
openArray[1] := 200;