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,f24b55bcdf15c088 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-09 23:08:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!grolier!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada95 tutorials with sample code. Date: 08 Mar 2001 06:13:06 +0000 Organization: CodeFella Message-ID: References: <3AA44F83.87CB23B7@acm.org> <3AA48DE9.A0650F21@emw.ericsson.se> <5F7p6.123$54.82@www.newsranger.com> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 984208015 nnrp-14:19342 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 8 Mar 2001 06:13:09 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: supernews.google.com comp.lang.ada:5600 Date: 2001-03-08T06:13:09+00:00 List-Id: Robert A Duff writes: > Ted Dennison writes: > > > The common example used is Ada.Strings.Unbounded.To_Unbounded_String. Even I > > have to admit this looks stupid. However, I'd claim that the stupidity is > > entirely a result of stupid naming on the designers part. They quite easily > > could have named the routine Ada.Strings.Unbounded.To, ... > > Is this supposed to be an example of a name that works well both with > and without use clauses? Yikes. This is an example of a name that was intended to work with 'use'. I think that most of the Ada hierarchy is like that .. > >...rather than repeating the > > names of two parent packages in the subprogram's identifier. > > I think it's repeating the name of a *type*, not packages. Similarly, I've just done a Great renaming on the Booch Components (http://www.pushface.org/components/bc/), replacing types like BC.Containers.Collections.Unbounded.Unbounded_Collection by BC.Containers.Collections.Unbounded.Collection (OK, these are generic packages, so what's actually visible to the user has become something more like My_Library_Unit.Collection rather than My_Library_Unit.Unbounded_Collection). This was a change forced by actually trying to _use_ my own work ..