comp.lang.ada
 help / color / mirror / Atom feed
From: "Marius Amado Alves" <amado.alves@netcabo.pt>
To: <comp.lang.ada@ada-france.org>
Subject: Re: different compilers: different standard types?????
Date: Sat, 20 Mar 2004 14:56:29 -0800
Date: 2004-03-20T14:56:29-08:00	[thread overview]
Message-ID: <mailman.119.1079794632.327.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: 3BM6c.29704$%06.14462@newsread2.news.pas.earthlink.net

> > 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.




  reply	other threads:[~2004-03-20 22:56 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-17  8:15 different compilers: different standard types????? Riccardo
2004-03-17 17:10 ` Martin Krischik
2004-03-18  3:47 ` Steve
2004-03-18 10:37   ` Jean-Pierre Rosen
2004-03-18 13:09     ` Dmitry A. Kazakov
2004-03-18 13:13   ` Marius Amado Alves
2004-03-18 14:21     ` Ludovic Brenta
2004-03-18 14:45     ` Georg Bauhaus
2004-03-18 17:33       ` Marius Amado Alves
2004-03-18 17:42       ` Martin Krischik
2004-03-19  0:16     ` Jeffrey Carter
     [not found]   ` <200403181313.16003.maa@liacc.up.pt>
2004-03-18 19:35     ` Duncan Sands
2004-03-19  1:08     ` Stephen Leake
     [not found]     ` <200403182035.57424.baldrick@free.fr>
2004-03-19  8:07       ` Marius Amado Alves
2004-03-19  3:29         ` Steve
2004-03-19 15:36           ` Marius Amado Alves
     [not found]           ` <00a401c40dc7$f2b333e0$c32416d5@netcabo.pt>
2004-03-19 16:03             ` Marius Amado Alves
     [not found]     ` <u7jxhprro.fsf@acm.org>
     [not found]       ` <005f01c40dbf$94ce9e20$c32416d5@netcabo.pt>
2004-03-19 13:19         ` Stephen Leake
2004-03-19 14:36       ` Marius Amado Alves
2004-03-19 10:16         ` Jean-Pierre Rosen
2004-03-20  0:52         ` Jeffrey Carter
2004-03-20 22:56           ` Marius Amado Alves [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-03-19  7:33 Riccardo
2004-03-19 13:10 ` Martin Dowie
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox