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,ae138939b724a2de X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 11 Jun 2011 07:28:00 -0500 From: "Peter C. Chapin" Subject: Re: Single element arrays as function parameters Newsgroups: comp.lang.ada References: <86ei31v43e.fsf@gareth.avalon.lan> User-Agent: Pan/0.133 (House of Butterflies) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: Date: Sat, 11 Jun 2011 07:28:02 -0500 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-g8aTwVKxiUrQa5WS2kmmgvs4eHBk+7DskywQvjf7pxbHVekONTLQVP0ywP0r0JVmih3ByjF/GMJcbP2!Pvwxo5jCPuAF/G4Mexc5qSr6TBCv1/D0+1EYI48Zk/qD1/kGijhKfQPBdfDwbxo= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html 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.40 X-Original-Bytes: 1563 Xref: g2news1.google.com comp.lang.ada:19745 Date: 2011-06-11T07:28:02-05:00 List-Id: On Fri, 10 Jun 2011 22:11:49 +0200, Mart van de Wege wrote: > If I look at the language documentation, I'm guessing that this is > because a single element array does not get recognised as being of type > MM_Subtype, which is defined as > > type MM_Subtype is array(Natural range <>) of Possible_MM_Subtype; > > What *is* the best way to store an attribute which may be either a > single enumeration element or a list of enumeration elements? What about qualifying the aggregate: MM_Subtype'(Dwarf) Peter