2 Aug
2018
2 Aug
'18
8:38 a.m.
`ORP' is now less forgiving, as I needed to change the above to
TYPE (* Depth=1 only *) ColorTable = POINTER TO ColorTableDesc; ColorTableDesc = RECORD i: ARRAY 2 OF RECORD red, green, blue: BYTE END END;
This change to the official compiler was made on 26.9.2017. It became necessary because no type descriptors are created in Oberon for *anonymous* records, so when the programmer calls NEW in such cases, the garbage collector would break. One could have decided to *also* create type descriptors for anonymous records (I have done that in a test implementation), but requiring pointers to always point to *named* records was deemed quite acceptable. And also improves readability a little. -ap