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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: calling function inside procedure call Date: Fri, 03 Oct 2014 21:31:00 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <78448f04-9371-4537-a40a-11bbbfb9b3d8@googlegroups.com> <6c03d8ce-6f9c-4ae6-83a1-af7baa31b144@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 4 Oct 2014 04:31:05 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2cce0a40174b83136a5e3a34df5b5ee7"; logging-data="16894"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195j2a9pMk1OY8OqefAEsiWq183tKY0qbs=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 In-Reply-To: Cancel-Lock: sha1:UGl5/fgJT46sCBUz64q+cKpPROc= Xref: news.eternal-september.org comp.lang.ada:22074 Date: 2014-10-03T21:31:00-07:00 List-Id: On 10/03/2014 08:33 PM, Shark8 wrote: > > return Some_Record'( > A => Get_Segment, > B => Get_Segment, > C => Get_Segment, > D => Get_Segment > ); You're relying on the order of evaluation, which is an error. The compiler may evaluate the expressions for the record components in any order, which is clearly not acceptable here. -- Jeff Carter "Strange women lying in ponds distributing swords is no basis for a system of government." Monty Python & the Holy Grail 66