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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ca6e1940d239274 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-18 00:42:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!news.tele.dk!small.news.tele.dk!195.27.83.146!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: unconstrainted arrays Date: Thu, 18 Oct 2001 07:42:17 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <3BCDA15C.2976AF2@icn.siemens.de> <3BCDB1B0.52D3B04C@icn.siemens.de> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1003390937 25086 217.17.192.37 (18 Oct 2001 07:42:17 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Thu, 18 Oct 2001 07:42:17 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:14860 Date: 2001-10-18T07:42:17+00:00 List-Id: * Alfred Hilscher wrote: >My current problem is to define the record in such a way, that I can >declare different variables like > >PTs_1 : s(10); >PTs_2 : s(16); >PTs_3 : s(24); >PTs_4 : s(58); > >whereby the data must be always stored in the order X, Y, A(1), A(2) .. >A(n). A trailing discriminant would be no problem, ... Ada record representation clauses can't do this. But Claude's suggestion of a generic package should solve your problem.