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,197f249b225fabe2 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Ada 83 versions of Ada 95 packages Date: 1996/12/24 Message-ID: #1/1 X-Deja-AN: 205819533 references: <9612232029.AA09783@most> <19961224155500.KAA09943@ladder01.news.aol.com> organization: New York University newsgroups: comp.lang.ada Date: 1996-12-24T00:00:00+00:00 List-Id: johnherro proposed package Ada83_Strings_Unbounded is type Unbounded_String(Length : Integer := 0) is private; function "+"(Right : in String) return Unbounded_String; function "+"(Right : in Unbounded_String) return String; function "&"(Left, Right : in Unbounded_String) return Unbounded_String; private type Unbounded_String(Length : Integer := 0) is record Text : String(1 .. Length); end record; end Ada83_Strings_Unbounded; This is confusingly named. The type involved is more like a fixed string than an unbounded string, so it is confusing to reuse the Ada 95 name in a completely misleading manner (especially given the subject line of this thread!) You can probably fairly easily adapt the GNAT unbounded string package to Ada 83, with the following notes: a. Of course the name of the package has to be changed b. you cannot use controlled, so that means you probably want to add an explicit free operation (in practice this will be the biggest difference between Ada 83 and Ada 95 versions of this package). Otherwise, you should be able to use these packages more or less directly!