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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,51b151b4d322b1cc X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: ada.strings.unbounded "free" and "String_Access" Date: 2000/03/13 Message-ID: <8ajghd$9qq$1@nnrp1.deja.com>#1/1 X-Deja-AN: 596968986 References: <38C5B5AD.D310C559@mindspring.com> <38c6de74@eeyore.callnetuk.com> X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Mar 13 19:45:49 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-03-13T00:00:00+00:00 List-Id: In article , Robert A Duff wrote: > Right. The inconvenience comes from the fact that you will end up with > several String_Access types in different packages (some probably called > String_Ptr, and so forth), and then when writing some code that uses > more than one package, you end up with a bunch of silly type > conversions. > > If you always use the One True String_Access, you avoid that problem, > although that seems kind of kludgy if you don't really want to use > Unbounded_Strings. I really wanted to have a feature in Ada 95 to be able to refer to a standard access type for any given type, perhaps something like String'Access, but I could not generate enough enthusiasm for this idea. As a result, you do indeed tend to get junk access all over the place. Note that there is a String_Access type just sitting there in unbounded strings for no apparent purpose (it is not used anywhere in the package). Perhaps the idea is that anyone who needs a standard string access type should with this (rather large) package????? Sent via Deja.com http://www.deja.com/ Before you buy.