Article View: comp.lang.oberon
Article #1250Is "POINTER TO ARRAY OF Object" legal?
From: skulski
Date: Tue, 02 Apr 1996 00:17
Date: Tue, 02 Apr 1996 00:17
20 lines
1048 bytes
1048 bytes
Is the following legal Oberon-2; Object* = POINTER TO ObjectDesc; ObjectDesc* = RECORD END; Array* = POINTER TO ARRAY OF Object; It compiles OK under Linux V4-0.9. However, I was told of at least one compiler Oberon-2 which does not compile this. Is the above construct legal, or is the said compiler broken? Pls note, that for example Kepler uses the following to represent objects: StarTab = POINTER TO ARRAY OF LONGINT; with calls to SYSTEM.VAL to convert POINTERS to LONGINTs. So, there is a potential problem here which Josef wanted to avoid. Is the "POINTER TO ARRAY OF Object" good legal Oberon, or is it not? Wojtek
Technical Details
Message-ID:
<1996Apr1.191755.1@fermi.nsrl.rochester.edu>Path:
arc1-ca.pugleaf.net!fermi.nsrl.rochester.edu!skulskiShow Full Headers
Complete Article Headers
Newsgroups: comp.lang.oberon Path: arc1-ca.pugleaf.net!fermi.nsrl.rochester.edu!skulski From: skulski@fermi.nsrl.rochester.edu Subject: Is "POINTER TO ARRAY OF Object" legal? Message-ID: <1996Apr1.191755.1@fermi.nsrl.rochester.edu> Sender: news@galileo.cc.rochester.edu Nntp-Posting-Host: nsrlc6.nsrl.rochester.edu Organization: Nuclear Structure Research Laboratory Date: 1 Apr 96 19:17:55 -0500