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,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,82a249cbe0a8d4bc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-12 17:32:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "Beard, Frank [Contractor]" Newsgroups: comp.lang.ada Subject: RE: arrays.. Date: Sun, 12 May 2002 20:30:15 -0400 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 1021249923 63046 137.194.161.2 (13 May 2002 00:32:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 13 May 2002 00:32:03 +0000 (UTC) Return-Path: X-Mailer: Internet Mail Service (5.5.2650.21) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:23937 Date: 2002-05-12T20:30:15-04:00 Arrays of characters are called strings: word : string (1..50); -- anonymous declaration or type Word_Type is string (1..50); word : Word_Type; Of course, nothing stops you from declaring: type Word_Type is array (1..50) of character; word : Word_Type; But, there are advantages to using strings, including predefined packages for doing various things. As far as arrays of words, you will have to grow your own. You could use something like: type Word_Array is array (1..100) of Word_Type; or, a little more dynamic: type Word_Array is array (1..100) of Ada.Strings.Unbounded.Unbounded_String; Plus, a hundred other variations. Frank -----Original Message----- From: devine To: comp.lang.ada@ada.eu.org Sent: 5/12/02 7:34 PM Subject: arrays.. Hi. I have seen many examples of array of integers and floats, are their any examples of array of characters and array of words? _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/mailman/listinfo/comp.lang.ada