🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3406

Re: structured types & procedures

#3406
From: Peter Moylan
Date: Thu, 21 Mar 1996 21:50
32 lines
2017 bytes
Mark Morgan Lloyd (mark_tbu@cix.compulink.co.uk) wrote:
>> In fact FTL seems to allow OPAQUE structured types

>This is the only compiler I've come across that does this, and it can be 
>a pain if one is not prepared. Specifically (and working from memory), it 
>rewrites the .sym file (derived from the .def) after compilation of the 
>.mod if it finds non-pointer opaques, which can cause intractable 
>dependency problems.

On the other hand, the "make" facility finds these dependencies,
which removes the pain.  There was, it is true, a bug in the
FTL "make" which sometimes forced you to do a re-make to get
it right; but this was just a bug - which could have been fixed
if the author hadn't decided that the market was too small to
justify further development - rather than a fundamental
limitation.

When I switched from FTL to TopSpeed, I found that I had to do
a great deal of code re-writing to adapt to the more
primitive (and now standard) rules about opaque types.
In my opinion this caused some elegant code to become
considerably less elegant, less readable, and more
error-prone, because of the heavier use of pointers.
I really miss the FTL-style opaque types.  In my opinion,
the present restrictions on opaque types are a major
shortcoming of Modula-2.

--
Peter Moylan                           peter@ee.newcastle.edu.au
                  http://www.eng.newcastle.edu.au/ee/Moylan.html
OS/2 freeware list at 
      http://www.eng.newcastle.edu.au/ee/Moylan/os2/os2info.html
Technical Details
Message-ID: <4isiun$c5r@seagoon.newcastle.edu.au>
Path: arc1-ca.pugleaf.net!fourier.newcastle.edu.au!peter
References: <4ijuav$8tu@nuacht.iol.ie> <DoIGo4.3En@cix.compulink.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fourier.newcastle.edu.au!peter
From: peter@fourier.newcastle.edu.au (Peter Moylan)
Newsgroups: comp.lang.modula2
Subject: Re: structured types & procedures
Date: 21 Mar 1996 21:50:14 GMT
Organization: The University of Newcastle
Message-ID: <4isiun$c5r@seagoon.newcastle.edu.au>
References: <4ijuav$8tu@nuacht.iol.ie> <DoIGo4.3En@cix.compulink.co.uk>
Reply-To: peter@tesla.newcastle.edu.au
NNTP-Posting-Host: fourier.newcastle.edu.au
X-Newsreader: TIN [version 1.2 PL2]