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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e67a94e45ae33316 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-07 10:54:59 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: Another good URL for all you C++ haters Date: Fri, 07 Sep 2001 13:54:52 -0400 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3B9909EC.249E165D@avercom.net> References: <3b9604b1.10736828@news.geccs.gecm.com> <87u1yhmitg.fsf@deneb.enyo.de> NNTP-Posting-Host: 192.168.24.34 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 999885295 1735 192.168.24.34 (7 Sep 2001 17:54:55 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 7 Sep 2001 17:54:55 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:12910 Date: 2001-09-07T17:54:55+00:00 List-Id: Florian Weimer wrote: > > chris.m.moore@amsjv.com (Chris M. Moore) writes: > > > Even Floyd, who loves the language, admits that, "Its greatest > > weaknesses is a flaw in the interface/implementation separation. A > > class exposes its private data/methods to the world and a programmer > > must use some tricks (that should be supported directly in the > > language) to overcome this." > > Doesn't have Ada a similar problem? Ada requires the full definition of a private type to be in the package spec, but it doesn't require the declaration of "helper" functions the way C++ does. Helper functions can be declared in the package body, without perturbing the spec. [In C++, one can use a "friend" class to contain the helper functions, but that is pretty obscure.] Note that both C++ and Ada allow access/pointer types to be declared without exposing the full details of the target type. -- -Tucker Taft stt@avercom.net http://www.avercom.net Chief Technology Officer, AverCom Corporation (A Titan Company) Bedford, MA USA (AverCom was formerly the Commercial Division of AverStar: http://www.averstar.com/~stt)