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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6cb2525ffbfe23ce X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: Why both "with" and "use"? Date: 1999/02/19 Message-ID: <7akabo$1uk$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 446127870 References: <36C5B28C.F32C43A4@jps.net> <7acj53$1vu@news3.newsguy.com> <7af68r$52o$1@platane.wanadoo.fr> <7ahq7p$s6k$1@nnrp1.dejanews.com> <7ak471$rt9$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x6.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Feb 19 18:26:12 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-02-19T00:00:00+00:00 List-Id: In article <7ak471$rt9$1@nnrp1.dejanews.com>, dennison@telepath.com wrote: >> Your example is particularly appropriate, because > Ada.Strings.Unbounded.Unbounded_String looks like it > was created by the department of redundancy department. > :-) Not at all, it was created with the intention that a USE clause would be used on this package, and in that case Unbounded_String is quite a reasonable name. If it was named simply String, that would create a nasty clash with the type in Standard, and would be much less convenient, because then we would write Ada.Strings.Unbounded.String, which is still a mouthful! Furthermore, we really do not typically want to have to preface every routine in this package by Unbounded, Unbounded.Head (Unbounded.To_String ("abc"), .... seems plain annoying to me! -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own