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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,9f5373f7d078262 X-Google-Attributes: gid103376,public From: "Steve Doiel" Subject: Re: Length & Last Attributes. Date: 1998/10/12 Message-ID: <3622adc4.0@news.pacifier.com>#1/1 X-Deja-AN: 400455326 References: <6vtr9b$hp9$1@platane.wanadoo.fr> X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 X-Trace: 12 Oct 1998 18:32:52 +0700, 216.65.140.209 Newsgroups: comp.lang.ada Date: 1998-10-12T00:00:00+00:00 List-Id: In your code you have the two lines: > Max_Descripteur : Positive; > subtype Ch_L_Cha�ne is String (1..Max_Descripteur); Which are "elaborated" when the program begins. At this time and ONLY at this time is the value of Max_escripteur used to define the size of the array. Since you have not defined a value for Max_Descripteur when the type Ch_L_Cha�ne is defined the actual size of the array is unpredictable, but likely zero. The functionality you are looking for may be found in either of the two packages: Ada.Strings.Bounded or Ada.Strings.Unbounded I hope this helps, SteveD