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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-17 08:19:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!newsfeed.esat.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed.siemens.de!news.mch.sbs.de!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: unconstrainted arrays Date: Wed, 17 Oct 2001 17:18:52 +0200 Organization: Siemens AG Message-ID: <3BCDA15C.2976AF2@icn.siemens.de> NNTP-Posting-Host: 139.21.122.158 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:14817 Date: 2001-10-17T17:18:52+02:00 List-Id: Hi, I know that I can define unconstrainted array where the actual constraints are given later: type My_Array is array (<>) of Integer; A1 : My_Array (1..10); Moreover I know a way to use this with structure: type s (len : integer) is record X,Y : Integer; A : My_Array (1..Len); end record; PTs : s (10); But this would add one extra component to the record (Len). Is there a way to avoid this extra component ? Maybe a pragma or rep-specs ? Its encapsulated within a package body for HW handling where the extra component is unwanted. Thanks.