[Oberon] FPGA - Oberon7 - Type Cast

Tomas Kral thomas.kral at email.cz
Tue Oct 2 18:18:21 CEST 2018


Hi,

I am testing `Read/Write Bytes()' procedures. I wish to read in a
structure, that I can write back to a file again.

TYPE
  R1 = RECORD a, b, c, d: CHAR END;
  Buf = ARRAY max OF BYTE;
VAR r1: R1;
...  
  ReadBytes(R, SYSTEM.VAL(Buf, r1), SYSTEM.SIZE(R1));

How can I typecast r1:R1 to Buf?

-- 
Tomas Kral <thomas.kral at email.cz>


More information about the Oberon mailing list