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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,272d4fbcd748af2b,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-25 07:41:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: Caldwell Ian Newsgroups: comp.lang.ada Subject: can a record contain an array whose bounds are not known at co mpi le time? Date: Fri, 25 Oct 2002 15:40:08 +0100 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 1035556862 10460 137.194.161.2 (25 Oct 2002 14:41:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 25 Oct 2002 14:41:02 +0000 (UTC) Return-Path: X-Mailer: Internet Mail Service (5.5.2653.19) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:30130 Date: 2002-10-25T15:40:08+01:00 Use a discriminated type. See RM section 3.7; An examples of discriminated type: type Buffer(Size : Buffer_Size := 100) is record Value : String(1 .. Size); end record; Ian Caldwell Q218 QinetiQ Malvern + 44 (0) 1684 89 4461 -----Original Message----- From: Yu, Liyang [mailto:Liyang.Yu@delta.com] Hi, I need to use an array in a record and this array's bound is not known at compile time. Can Ada do this? Can someone give me a example about how to do this or any reference that I can use? Thanks! The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.