TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To:
Rick Duley <[log in to unmask]>
Date:
Wed, 19 Jun 2002 19:39:15 -0700
Reply-To:
Vincent Celier <[log in to unmask]>
Subject:
MIME-Version:
1.0
Content-Transfer-Encoding:
7bit
Content-Type:
text/plain; charset=us-ascii; format=flowed
From:
Vincent Celier <[log in to unmask]>
Parts/Attachments:
text/plain (23 lines)
>
>
>Outer_Loop:
>   for Outer in This_Value .. That_Value loop
>   Inner_Loop:
>      for Inner in Lower_Limit ..
>                      Integer(Sqrt.(Float.Outer)) loop
>         Blah;
>         Blah;
>         Blah;
>      end loop Inner_Loop;
>   end loop Outer_Loop;
>
>Does Ada require evaluation of the upper limit at each iteration of the
>inner loop or is the square root function (with the attendant coercions)
>only called once?
>

The truth is in the RM. In this case, it is in RM 5.5 (9).
With an explicit note in RM 5.5 (12).

--  Vincent

ATOM RSS1 RSS2