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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1b8bb636c4056425 X-Google-Attributes: gid103376,public From: Scott Ingram Subject: Re: Using an array of variant records Date: 2000/01/28 Message-ID: <3891A3D2.6D94B57E@silver.jhuapl.edu>#1/1 X-Deja-AN: 578759478 Content-Transfer-Encoding: 7bit References: <389089CB.85F9FF72@silver.jhuapl.edu> <86qg16$ug3$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@houston.jhuapl.edu X-Trace: houston.jhuapl.edu 949068755 6230 128.244.80.107 (28 Jan 2000 14:12:35 GMT) Organization: Johns Hopkins University Applied Physics Lab, Laurel, MD, USA Mime-Version: 1.0 NNTP-Posting-Date: 28 Jan 2000 14:12:35 GMT Newsgroups: comp.lang.ada Date: 2000-01-28T14:12:35+00:00 List-Id: David, C., Hoos, "Sr." wrote: > > Is there something that I have overlooked? > Yes. The expression to the right of the dot is not a selector, but an > aggregate. > > I believe you wanted : > > S1(i) := (caged => True, > snake_kind => green, > health => (shed => true, > active => true)); Duh. Thought that I had tried that, but since the actual aggregate is far more complex than the example above I missed something when trying to assign it. Gnat just happened to pick the assignment operator as the spot to point out that the expression on the rhs was wrong. :) -- Scott Ingram Sonar Processing and Analysis Laboratory Johns Hopkins University Applied Physics Laboratory