X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=b9b14ae66be8abf069ff9c19ca678ff3e117694d;hb=57963798c338b0b73e032e9288003fd462f8b954;hp=67132268d6a753e3cfdc990ac2dec0eaed6e1670;hpb=d25fb653bfe19a696d3f53abd784d32ba2d3ee03;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 6713226..b9b14ae 100644 --- a/Test.obn +++ b/Test.obn @@ -1,13 +1,23 @@ MODULE Test; +TYPE + Stream* = POINTER TO Handle; + Handle = RECORD END; + + Writer* = RECORD END; + + Printer* = RECORD (Writer) END; + VAR - i : INTEGER; - f : REAL; - d : LONGREAL; + s : Stream; + o : Writer; + out : Printer; + +PROCEDURE SetStream(VAR w : Writer; stream : Stream); +BEGIN +END SetStream; BEGIN - i := 5 DIV 3; - f := 5 / 3; - d := 5 / 3.0; - d := 5 / 3.0D0; + SetStream(o, s); + SetStream(out, s); END Test.