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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,de6163af173c0de3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.76.130 with SMTP id k2mr1761576paw.16.1344890659597; Mon, 13 Aug 2012 13:44:19 -0700 (PDT) Path: c10ni111828pbw.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: awdorrin Newsgroups: comp.lang.ada Subject: Re: Question Exception with Ada.Containers.Generic_Constrained_Array_Sort Date: Mon, 13 Aug 2012 13:44:19 -0700 (PDT) Organization: http://groups.google.com Message-ID: <097437ed-1197-423f-8c00-4480fb2f8ebb@googlegroups.com> References: NNTP-Posting-Host: 192.31.106.34 Mime-Version: 1.0 X-Trace: posting.google.com 1344890659 28975 127.0.0.1 (13 Aug 2012 20:44:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 13 Aug 2012 20:44:19 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=192.31.106.34; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-08-13T13:44:19-07:00 List-Id: I managed to find a way to get this to work, but I am really not sure I'm doing this the right way. :) First, I changed from using Generic_Constrained_Array_Sort to the unconstrained version. Second, I changed my declarations like this: type Device_Array_Type is array( Device_Index_Type range <> ) of Device_Object_Type; // make this unconstrained type DeviceListType is record Num_Devices : Device_Index_Type; DeviceList : Device_Array_Type(Device_Index_Type); // limit range 1..128 end record; Code appears to do what I want it to, but I'm really not sure this is the right solution.