From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 11 Aug 93 00:25:29 GMT 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 Message-ID: <1993Aug11.002529.6140@seas.gwu.edu> List-Id: In article 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