comp.lang.ada
 help / color / mirror / Atom feed
From: agate!howland.reston.ans.net!europa.eng.gtefsd.com!darwin.sura.net!seas.g wu.edu!mfeldman@ucbvax.Berkeley.EDU  (Michael Feldman)
Subject: Re: question about generics
Date: 11 Aug 93 00:25:29 GMT	[thread overview]
Message-ID: <1993Aug11.002529.6140@seas.gwu.edu> (raw)

In article <EACHUS.93Aug10105310@spectre.mitre.org> eachus@spectre.mitre.org (R
obert I. Eachus) writes:

[deleted]

>
>  > I.E. I need to be able to say something like
>
>  >  package Generic_Package_Support is
>  >     Viewers : array (1 .. 5) of STRING := ("How", "Would", "I", "Do", "Thi
s?");
>  >  end Generic_Package_Support;
>
>    You apparently need a package which implements varying strings in
>a way that allows you to have arrays of differently sized strings.
>This can be done in Ada by having a type which has a discriminated
>record (with defaults) wrapped in a record with no discriminants.
>I can send you such a package if you don't have one...
>
If I understand this right, we'd better put a warning here to be REAL
careful what the range of the discriminant is, for reasons that we
explain here every couple of months.

To do this ragged array in a more natural way, you'll need 9X.

Mike Feldman

             reply	other threads:[~1993-08-11  0:25 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-11  0:25 agate!howland.reston.ans.net!europa.eng.gtefsd.com!darwin.sura.net!seas.g [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-07-02 16:08 Question about generics Peter C. Chapin
2006-07-02 18:49 ` Martin Krischik
2006-07-03  6:30 ` Jeffrey R. Carter
2006-07-03 10:33   ` Peter C. Chapin
2006-07-03 11:42     ` Jean-Pierre Rosen
2006-07-03 16:44     ` Pascal Obry
2006-07-04  1:09       ` Peter C. Chapin
2006-07-04  6:17         ` M E Leypold
2006-07-04 10:48           ` Peter C. Chapin
2006-07-03 20:03     ` Jeffrey R. Carter
2006-07-03 20:18       ` Dmitry A. Kazakov
2006-07-04  0:08         ` Randy Brukardt
2006-07-04  7:48           ` Dmitry A. Kazakov
2006-07-04  0:43         ` Jeffrey R. Carter
2006-07-03  9:46 ` Martin Krischik
2006-07-04 13:29 ` Stephen Leake
2006-07-05 12:08   ` Dmitry A. Kazakov
1993-09-02 17:45 question " Stef  Van Vlierberghe
1993-08-12 15:18 Robert I. Eachus
1993-08-11 18:48 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.
1993-08-10 15:53 Robert I. Eachus
1993-08-09 21:29 Kenneth Anderson
1989-05-29 20:54 Question " "14827_DAVID PAPAY"
1989-05-29  7:02 "Jonathan B. Owen"
replies disabled

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