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-Thread: 103376,1fa85f3df5841ae1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Fri, 29 Apr 2005 14:57:36 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <426e4c2b$0$7515$9b4e6d93@newsread2.arcor-online.net> <0uYbe.542$BE3.229@newsread2.news.pas.earthlink.net> Subject: Re: Ada.Containers.Vectors - querying multiple elements Date: Fri, 29 Apr 2005 15:00:10 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-z94iB9YkELGpnthqCvqxZajb/iYZJHQtbEsabeSgdle55dKpcx039P8yiGpcO8lu9mtoefk8tJpkRmF!mdWej16+AgrU+VSOE6W6BUR+fpFr/o57750vnXSl5Rj8PXKhZOpbxoyJlKJ0OdJfkwlkyQZPHYBS X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:10829 Date: 2005-04-29T15:00:10-05:00 List-Id: "Jeffrey Carter" wrote in message news:hlhce.936$HL2.780@newsread3.news.pas.earthlink.net... > Randy Brukardt wrote: ... > Right, but you can say > > Obj : Some_Array := Some_Array'(<>); > > (I hope I've remembered the syntax correctly) and Obj'Length = 0; there > was no way to do this before if Enum'First = Enum'Last. And you should > be able to convert Obj into a corresponding unbounded array. I have no idea what you are talking about. That would represent an array with exactly one default initialized element -- if it was allowed, which it is not. That's because "<>" is only allowed with named notation, meaning you have to give the bounds in the aggregate (or use "others"). Randy.