From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!nuzba.szn.dk!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada202X: Easy to use "UML private"-like components Date: Mon, 24 Jun 2013 15:20:05 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <69246de0-4b33-4d47-b5be-a45e8c911fb0@googlegroups.com> <9qrbs8l828t3pvgves504a8fm7o1c7tcpj@4ax.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1372105206 11592 69.95.181.76 (24 Jun 2013 20:20:06 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 24 Jun 2013 20:20:06 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:15925 Date: 2013-06-24T15:20:05-05:00 List-Id: "Robert A Duff" wrote in message news:wccr4ftko44.fsf@shell01.TheWorld.com... > Niklas Holsti writes: > >> Maybe my post was unclear: I tried to contradict Bob Duff's recollection >> that an opaque type in Modula-2 is more like an Ada private type than >> like an "stt access type". I think that a Modula-2 opaque type is very >> similar to an "stt access type". Do you agree with me? > > Yes, given your quotes from Wirth, I agree that Modula-2 opaque types > are much like stt access types. I had remembered the restriction > differently: the type was required to fit in the size of a pointer, > which included integers and enums and small records. Probably the > Modula-2 compiler I used had a nonstandard extension -- or else I am > misremembering. My recollection matches yours, Bob. Perhaps the rule was changed in later versions of the language. In any case, the Modula-2 obaque type is *not* a pointer type, so in that sense it is much more like an Ada private type than an access type of any sort. (I.e., I don't buy this analogy, especially as there isn't any such thing as an stt-access-type -- the operative thing is an stt-incomplete-type, which is nothing like a Modula-2 opaque type. The access type is completely normal, its the designated object that's special.) Randy.