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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,78f8f7e576439a69 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-16 11:05:50 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!demon!grolier!freenix!enst!enst.fr!not-for-mail From: "M. A. Alves" Newsgroups: comp.lang.ada Subject: Re: Heterogenous_Array_Test Date: Thu, 16 Aug 2001 19:06:33 +0000 (GMT) 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=US-ASCII X-Trace: avanie.enst.fr 997985150 89570 137.194.161.2 (16 Aug 2001 18:05:50 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 16 Aug 2001 18:05:50 +0000 (UTC) To: Return-Path: X-X-Sender: In-Reply-To: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:12001 Date: 2001-08-16T19:06:33+00:00 So, the specific (coding) problem is fixed with type conversion: Child(Item(2).all).Child_Component := 22; However, as was pointed out, that is not fully satisfactory an idiom (for heterogenous arrays). The really fine aproach is dispatching. So I tried to define dispatching procedures in the declarative part of the test procedure---and it did not work! Why? Because *** dispatching subprograms must be defined in a package spec *** I got this tiny but essential piece of knowledge as a warning from the compiler (GNAT 3.13p) not before a good number of tries, so I thought I should share it with you good folks. _Now_ my original general problem (implementing an heterogenous array) is solved. Thanks all, -- , M A R I O data miner, LIACC, room 221 tel 351+226078830, ext 121 A M A D O Rua Campo Alegre, 823 fax 351+226003654 A L V E S P-4150 PORTO, Portugal mob 351+939354002