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: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Ada202X: Easy to use "UML private"-like components Date: Sat, 22 Jun 2013 19:41:00 +0300 Organization: Tidorum Ltd Message-ID: References: <69246de0-4b33-4d47-b5be-a45e8c911fb0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net gW6hy3kJUPrmH+UvrCXYfgAtO+gLhNKFMxwO80FcS/qKF7wZby Cancel-Lock: sha1:bTNiL3ZcgH6yqO7FHzbzr9w6ikE= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: X-Original-Bytes: 2344 Xref: number.nntp.dca.giganews.com comp.lang.ada:182025 Date: 2013-06-22T19:41:00+03:00 List-Id: On 13-06-21 21:36 , Robert A Duff wrote: > I share your disdain for what you called "opaque" types -- it forces you > into heap management, which leads to extra trouble. But I object to > calling them "opaque" types. Ada folks usually call them "stt access > types" and "stt incomplete types", or "Taft amendment types", because > they were invented by Tucker Taft and added to Ada 83 at the last minute > when nobody realized all the headaches they cause for compiler writers. > The term "opaque type" comes from Modula-2, IIRC, and is more like > an Ada private type, with some annoying restrictions added. According to the Modula-2 Reference at http://www.modula2.org/reference/modules.php, when a Modula-2 definition module declares an opaque type, "The corresponding implementation module must contain a full type declaration for any opaque types declared in the definition module. The full type declaration must define a pointer type." I take this to mean that a Modula-2 opaque type uses indirection through a pointer type, just as the "stt access types" in Ada, and unlike Ada private types in general. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .