X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=a704f0db4d56d3206461fc18065a9afa32220c0e;hb=9ae75f92f805e23b0b151cf8be18a3fe96935c3b;hp=b80d7a15c3a490308c7b343ab2843e710f22efde;hpb=49ad3c76fc9656759aab23d9034ebc33f8d8bd9d;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index b80d7a1..a704f0d 100644 --- a/Test.obn +++ b/Test.obn @@ -1,22 +1,23 @@ MODULE Test; -TYPE - R1 = RECORD END; - R2 = RECORD (R1) END; - R3 = RECORD END; + TYPE + CPinfo = RECORD + tag : INTEGER; + index : ARRAY 2 OF LONGINT; + int : LONGINT; + float : REAL; + long : HUGEINT; + double : LONGREAL; + utf8 : POINTER TO ARRAY OF CHAR; + END; - P1 = POINTER TO R1; - P2 = POINTER TO R2; + CPool = POINTER TO ARRAY OF CPinfo; -VAR - a : R1; - b : R2; - c : R3; - p1 : P1; - p2 : P2; + VAR + i : HUGEINT; + cpool : CPool; BEGIN - a := b; - p2 := p1(P2); - p1 := p2(P2); + i := 16; + NEW(cpool, i); END Test.