TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Vincent Celier <[log in to unmask]>
Reply To:
Vincent Celier <[log in to unmask]>
Date:
Wed, 19 Jun 2002 19:39:15 -0700
Content-Type:
text/plain
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