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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,1f0bebbd5edf4a6f,start X-Google-Attributes: gid103376,public From: Lengyel Sandor Subject: Please help a newbie with Booch/Ada. Date: 1998/08/20 Message-ID: <35DCCE3A.9EAE78D8@pacbell.net>#1/1 X-Deja-AN: 383185406 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Organization: Pacific Bell Internet Services Mime-Version: 1.0 Reply-To: hunnia@pacbell.net Newsgroups: comp.lang.ada Date: 1998-08-20T00:00:00+00:00 List-Id: I am fooling around with the Booch components, since I think "Collections" are very usefull. I tried out Single_List. It works fine for a data =3D Character. I tried to make it work for string. First I generated a string_references.ads as follows: PACKAGE String_References IS TYPE String_ptr IS ACCESS ALL String; TYPE Const_String_Ptr IS ACCESS CONSTANT String; END String_References; Then I created a root_string_container.ads as: with Bc.Containers; with String_References; package Root_String_Container is new Bc.Containers (String,String_References.String_ptr); (Coping the format of root_container.ads. :-) ) When I run a semanric check on this later code, I get the following message. root_string_container.ads:4:08: actual for "Item" must be a definite subtype. ?? What does it mean !definite! subtype. Why Character fulfills this requirement but String does not. Where in the literature can I find explanations for these messages. The expression "definite subtype" is not in my Ada book. (Subtype of course is.) How can one make Booch work for Strings? Thanks. -- = Lengyel S=E1ndor Hass, alkoss, gyarapits, S a haza f=E9nyre der=FCl. (K=F6lcsey)