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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd3300f3a56e7f45 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-20 06:58:56 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Marius Amado Alves" Newsgroups: comp.lang.ada Subject: Re: different compilers: different standard types????? Date: Sat, 20 Mar 2004 14:56:29 -0800 Organization: Cuivre, Argent, Or Message-ID: References: <200403181313.16003.maa@liacc.up.pt> <3BM6c.29704$%06.14462@newsread2.news.pas.earthlink.net> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1079794633 26159 212.85.156.195 (20 Mar 2004 14:57:13 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sat, 20 Mar 2004 14:57:13 +0000 (UTC) To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-OriginalArrivalTime: 20 Mar 2004 14:56:59.0542 (UTC) FILETIME=[9886A360:01C40E8B] X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:6459 Date: 2004-03-20T14:56:29-08:00 > > String is another slightly disturbing thing. I'd rather have an Ada.Arrays > > generic on the types of index and element. Talk small. And then the same > > "create your own integers" argument would apply here. Create your own > > Strings. But this is designing a new language. (No, not C.) > > This is called a one-dimensional type declaration. For example, type > String is defined as > > type String is array (Positive range <>) of Character; > pragma Pack (String); > > What you want can be done in exactly the same way: > > type Ada_Array_Instantiation is array (Index [range <>]) of Element; I know, and this is why I questioned the purpose of String (or Integer, or Float). But I also meant a generic *package* Ada.Arrays. To have more functionality for arrays than that provided by the language. Like Ada.Strings, but for any element type.