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,51b151b4d322b1cc,start X-Google-Attributes: gid103376,public From: Al Johnston Subject: ada.strings.unbounded "free" and "String_Access" Date: 2000/03/07 Message-ID: <38C5B5AD.D310C559@mindspring.com>#1/1 X-Deja-AN: 594523220 Content-Transfer-Encoding: 7bit Organization: MindSpring Enterprises X-Accept-Language: en X-Server-Date: 8 Mar 2000 02:09:16 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-03-08T02:09:16+00:00 List-Id: I am new to ada95 and am porting our code from ada83 to 95. We currently pass things all over the place using a type similar to unbounded's string_access. Regrettably the code relied on the 'address of an object of that type being an address... so our code is broken in a lot of places. I am looking at replacing a lot of the places where we were using our own "access String" type with this strange unbounded.unbounded_string type. But I was wondering... why is the type "ada.strings. unbounded.string_access" as well as a "free" routine for this type, provided in the spec of unbounded.strings? I cant find a way of getting anything from this package that is of this type, much less having a need to free it. What don't I know? (why are these two available?). The closes I could come was the function "to_String(Souce : Unbounded_String) return String" But if I understand this stuff correctly, this function returns a copy of the string by-value. If I wanted the results of this function to hang around I would have to do a "new" own my own, and then these two (other wise useless) things would be useful... but the really don't have anything to do with the "public" part of the package.... again, what don't I understand. thanks. -al