<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div>EDIT: </div><div><br></div><div>Sorry, I meant to say..</div><div><br></div><div>(1) <b>does</b> compile under the Original Oberon compiler, <b>but</b> when a variable is declared as POINTER TO RECORD ... END without a preceding type definition, it leads to the runtime problem described in my original post (no type descriptor created)</div><div><br></div>
<div id="ydpa6750bf6yahoo_quoted_7092021358" class="ydpa6750bf6yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Saturday, September 23, 2017, 2:27:04 PM GMT+2, Andreas Pirklbauer <andreas_pirklbauer@yahoo.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="ydpa6750bf6yiv0270944652"><div><div class="ydpa6750bf6yiv0270944652">The code segment</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"><div class="ydpa6750bf6yiv0270944652"><span class="ydpa6750bf6yiv0270944652Apple-tab-span" style="white-space: pre-wrap;"> </span>List = POINTER TO RECORD</div><div class="ydpa6750bf6yiv0270944652"><span class="ydpa6750bf6yiv0270944652Apple-tab-span" style="white-space: pre-wrap;"> </span>item: T;</div><div class="ydpa6750bf6yiv0270944652"><span class="ydpa6750bf6yiv0270944652Apple-tab-span" style="white-space: pre-wrap;"> </span>next: List</div><div class="ydpa6750bf6yiv0270944652"><span class="ydpa6750bf6yiv0270944652Apple-tab-span" style="white-space: pre-wrap;"> </span>END</div></div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">(1) does <b class="ydpa6750bf6yiv0270944652">NOT</b> compile under the Original Oberon compiler for RISC (as currently published on the web)</div><div class="ydpa6750bf6yiv0270944652">(2) <b class="ydpa6750bf6yiv0270944652">does</b> compile under my original suggestion (which creates a type descriptor for the anonymous record type)</div><div class="ydpa6750bf6yiv0270944652">(3) does <b class="ydpa6750bf6yiv0270944652">NOT</b> compile under the alternative suggestion (which simply disallows pointers to anonymous records)</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">In my version of the Oberon compiler I have (2) implemented. I was just wondering whether one should in fact restrict the language further to obtain (3).</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">PS: I don’t think “declaration bloat” is a big issue. After all the *entire* Oberon system is written with pointers to *named* record types, and it really is not all that more verbose, while increasing readability. But it can be debated. Personally I’d be fine with leaving (2), so that your code actually compiles.</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"><b class="ydpa6750bf6yiv0270944652">$ grep POINTER Oberon/Sources/*.Mod</b><br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Checkers.Mod: TYPE Frame = POINTER TO FrameDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Curves.Mod: Curve* = POINTER TO CurveDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/EBNF.Mod: Item = POINTER TO ItemDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/EBNF.Mod: Symbol = POINTER TO SymbolDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/FileDir.Mod: FileHd* = POINTER TO FileHeader;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Files.Mod: File* = POINTER TO FileDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Files.Mod: Buffer = POINTER TO BufferRecord;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Files.Mod: Index = POINTER TO IndexRecord;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Fonts.Mod: TYPE Font* = POINTER TO FontDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Fonts.Mod: LargeFont = POINTER TO LargeFontDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/GraphicFrames.Mod: Frame* = POINTER TO FrameDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/GraphicFrames.Mod: Location* = POINTER TO LocDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Graphics.Mod: Graph* = POINTER TO GraphDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Graphics.Mod: Object* = POINTER TO ObjectDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Graphics.Mod: Method* = POINTER TO MethodDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Graphics.Mod: Line* = POINTER TO LineDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Graphics.Mod: Caption* = POINTER TO CaptionDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Graphics.Mod: Macro* = POINTER TO MacroDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Graphics.Mod: MacHead* = POINTER TO MacHeadDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Graphics.Mod: MacExt* = POINTER TO MacExtDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Graphics.Mod: Library* = POINTER TO LibraryDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/MenuViewers.Mod: TYPE Viewer* = POINTER TO ViewerDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Modules.Mod: TYPE Module* = POINTER TO ModDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/ORB.Mod: TYPE Object* = POINTER TO ObjDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/ORB.Mod: Module* = POINTER TO ModDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/ORB.Mod: Type* = POINTER TO TypeDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/ORP.Mod: TYPE PtrBase = POINTER TO PtrBaseDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/ORS.Mod: EnterKW(pointer, "POINTER");<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Oberon.Mod: Task* = POINTER TO TaskDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Rectangles.Mod: Rectangle* = POINTER TO RectDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Stars.Mod: TYPE Frame = POINTER TO FrameDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/TextFrames.Mod: TYPE Line = POINTER TO LineDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/TextFrames.Mod: Frame* = POINTER TO FrameDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Texts.Mod: TYPE Piece = POINTER TO PieceDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Texts.Mod: Text* = POINTER TO TextDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Texts.Mod: Buffer* = POINTER TO BufDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Viewers.Mod: Viewer* = POINTER TO ViewerDesc;<br clear="none" class="ydpa6750bf6yiv0270944652">Oberon/Sources/Viewers.Mod: Track = POINTER TO TrackDesc;<br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">Andreas</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<div class="ydpa6750bf6yiv0270944652">August Karlstrom fusionfile at <a shape="rect" class="ydpa6750bf6yiv0270944652" href="http://gmail.com" rel="nofollow" target="_blank">gmail.com</a> Sat Sep 23 13:22:41 CEST 2017<br clear="none" class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652Apple-interchange-newline"><div class="ydpa6750bf6yiv0270944652">In most cases we don't need a name for the record type, for instance in</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"><span class="ydpa6750bf6yiv0270944652Apple-tab-span" style="white-space: pre-wrap;"> </span>List = POINTER TO RECORD</div><div class="ydpa6750bf6yiv0270944652"><span class="ydpa6750bf6yiv0270944652Apple-tab-span" style="white-space: pre-wrap;"> </span>item: T;</div><div class="ydpa6750bf6yiv0270944652"><span class="ydpa6750bf6yiv0270944652Apple-tab-span" style="white-space: pre-wrap;"> </span>next: List</div><div class="ydpa6750bf6yiv0270944652"><span class="ydpa6750bf6yiv0270944652Apple-tab-span" style="white-space: pre-wrap;"> </span>END</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">Forcing the above to be split into two declarations only leads to declaration bloat.</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">-- August</div><br clear="none" class="ydpa6750bf6yiv0270944652"></div>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"><div class="ydpa6750bf6yiv0270944652yqt3027964322" id="ydpa6750bf6yiv0270944652yqt75333"><div><blockquote class="ydpa6750bf6yiv0270944652" type="cite"><div class="ydpa6750bf6yiv0270944652">On 23 Sep 2017, at 10:01, Andreas Pirklbauer <<a shape="rect" class="ydpa6750bf6yiv0270944652" href="mailto:andreas_pirklbauer@yahoo.com" rel="nofollow" target="_blank">andreas_pirklbauer@yahoo.com</a>> wrote:</div><br clear="none" class="ydpa6750bf6yiv0270944652Apple-interchange-newline"><div class="ydpa6750bf6yiv0270944652"></div></blockquote></div></div></div></div><div class="ydpa6750bf6yiv0270944652yqt3027964322" id="ydpa6750bf6yiv0270944652yqt23375"><div><div class="ydpa6750bf6yiv0270944652" style="word-wrap:break-word;"><div class="ydpa6750bf6yiv0270944652">No, they don’t need to be exported. Here is an even more minimal program showing the effect:</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> MODULE M;</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> VAR x: POINTER TO RECORD i: INTEGER END;</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> PROCEDURE P*;</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> BEGIN NEW(x); x.i := 0</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> END P;</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> END M.</div></div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">The compiler compiles this program with no error message. But at runtime, multiple executions of the command M.P will lead to a trap.</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">I just noticed that nowhere in the Original Oberon system are pointer variables declared as shown above. They all point to *named* record types.</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">This makes me inclined to actually disallow the above program to be compiled. To achieve that, one would only have to change the language rule from “Pointers must point to records” to “Pointers must point to named records” in the language definition (see the last sentence in <a shape="rect" class="ydpa6750bf6yiv0270944652" href="https://www.inf.ethz.ch/personal/wirth/Oberon/Oberon07.pdf" rel="nofollow" target="_blank">https://www.inf.ethz.ch/personal/wirth/Oberon/Oberon07.pdf</a> ) and adjust the proposed change to procedure ORP.Type0 accordingly:</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"> IF (type.base.form # ORB.Record) OR (type.base.typobj = NIL) THEN ORS.Mark("must point to named record”) END ;</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">Andreas</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652">------------------------------------------------------------------------------------------------------------</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652">Chris Burrows chris at <a shape="rect" class="ydpa6750bf6yiv0270944652" href="http://cfbsoftware.com/" rel="nofollow" target="_blank">cfbsoftware.com</a> Sat Sep 23 06:24:28 CEST 2017<br clear="none" class="ydpa6750bf6yiv0270944652"><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">I’m having difficulty understanding the possible intended use of your example. Did you really mean for x and y to be marked for export? If so, can you provide an example client module which would demonstrate how they could be usefully referenced?</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"> </div><div class="ydpa6750bf6yiv0270944652">Regards,</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">Chris Burrows</div><div class="ydpa6750bf6yiv0270944652">CFB Software</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><a shape="rect" class="ydpa6750bf6yiv0270944652" href="http://www.astrobe.com/" rel="nofollow" target="_blank">http://www.astrobe.com</a><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">------------------------------------------------------------------------------------------------------------</div></div><br clear="none" class="ydpa6750bf6yiv0270944652"><div class="ydpa6750bf6yiv0270944652"><blockquote class="ydpa6750bf6yiv0270944652" type="cite"><div class="ydpa6750bf6yiv0270944652">On 22 Sep 2017, at 16:47, Andreas Pirklbauer <<a shape="rect" class="ydpa6750bf6yiv0270944652" href="mailto:andreas_pirklbauer@yahoo.com" rel="nofollow" target="_blank">andreas_pirklbauer@yahoo.com</a>> wrote:</div><br clear="none" class="ydpa6750bf6yiv0270944652Apple-interchange-newline"><div class="ydpa6750bf6yiv0270944652"></div></blockquote></div></div></div></div><div><div class="ydpa6750bf6yiv0270944652" style="word-wrap:break-word;"><div class="ydpa6750bf6yiv0270944652yqt3027964322" id="ydpa6750bf6yiv0270944652yqt40690"><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">It seems that the Oberon 2013 compiler on RISC creates type descriptors only for *named* record types, but not for *anonymous* record types. This creates a problem if a dynamic variable pointing to an anonymous record type is allocated in the heap via the predefined procedure NEW.</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">For example, in the following test program:</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><div class="ydpa6750bf6yiv0270944652"> MODULE M;</div><div class="ydpa6750bf6yiv0270944652"> TYPE R* = RECORD i: INTEGER END;</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"> VAR x*: POINTER TO R;</div><div class="ydpa6750bf6yiv0270944652"> y*: POINTER TO RECORD x, y, z: INTEGER END;</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"> PROCEDURE P*;</div><div class="ydpa6750bf6yiv0270944652"> BEGIN NEW(x)</div><div class="ydpa6750bf6yiv0270944652"> END P;</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"> PROCEDURE Q*;</div><div class="ydpa6750bf6yiv0270944652"> BEGIN NEW(y)</div><div class="ydpa6750bf6yiv0270944652"> END Q;</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"> END M.</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">the pointer variable 'x' points to a dynamic record of *named* record type 'R' for which a type descriptor is created by the compiler when the declaration for 'R' is processed. However, the pointer variable 'y' points to an *anonymous* record type for which *no* type descriptor is created by the compiler. So the command M.Q will crash the system as soon as the garbage collector uses the type tag of ‘y' to access the (non existing) type descriptor of the anonymous record pointed to by ‘y’.</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652">The proposed solution is to also creates a type descriptor for a variable declaration of a pointer variable pointing to an *anonymous* record type. This is achieved by adding a single line to procedure ORP.Type0:</div></div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> PROCEDURE Type0(Var type: ORB.Type);</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> ...</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> BEGIN</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> ...</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> IF sym = ORS.ident THEN ...</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> ELSIF sym = ORS.array THEN ....</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> ELSIF sym = ORS.record THEN ...</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> ELSIF sym = ORS.pointer THEN ....</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> ...</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> IF sym = ORS.ident THEN ...</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> ELSE Type(type.base);</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> IF type.base.form # ORB.Record THEN ORS.Mark("must point to record”)</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">--> ELSIF (type.base.typobj = NIL) & (level = 0) THEN ORG.BuildTD(type.base, dc) (*type descriptor; len used as its address*)</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><div class="ydpa6750bf6yiv0270944652"> END ;</div><div class="ydpa6750bf6yiv0270944652"> CheckRecLevel(level)</div></div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> END</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> ELSIF sym = ORS.procedure THEN ...</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> ELSE ...</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> END</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"> END Type0;</div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><div class="ydpa6750bf6yiv0270944652">I’d be interested if anyone else has bumped into this issue before and whether there are any comments on the proposed solution. In particular, are there any other cases that should be considered and that people have reported before? Also, I have not tested the proposed solution with record extensions.</div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div></div></div><div class="ydpa6750bf6yiv0270944652" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;"><div class="ydpa6750bf6yiv0270944652"><div class="ydpa6750bf6yiv0270944652yqt3027964322" id="ydpa6750bf6yiv0270944652yqt31216"><div class="ydpa6750bf6yiv0270944652">Best regards,</div><div class="ydpa6750bf6yiv0270944652">AP</div></div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div><div class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div></div></div></div><br clear="none" class="ydpa6750bf6yiv0270944652"><br clear="none" class="ydpa6750bf6yiv0270944652"></div></div></div>
</div>
</div></div></body></html>