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: 10 Aug 93 15:53:10 GMT From: eachus@mitre-bedford.arpa (Robert I. Eachus) Subject: Re: question about generics Message-ID: List-Id: In article <9308091429.aa12174@Paris.ics.uci.edu> kanderso@mabillon.ICS.UCI.EDU (Kenneth Anderson) writes: > I need a generic package to do some initialization based on an array of > strings. > 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", "This ?"); > 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... -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...