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:
Jacob Sparre Andersen <[log in to unmask]>
Reply To:
Jacob Sparre Andersen <[log in to unmask]>
Date:
Thu, 23 Aug 2001 12:57:46 +0200
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (22 lines)
Toshitaka:

> My topic here is, however, to know what Ada programmers
> and language lawyers would think "For-Loop Iteration for
> Real Type" for AdaXX.

I think for loops on floating point types is a mistake,
since the step size isn't constant.

For fixed point types, where the step size can be constant,
I consider it interesting (and something I might want to
use). There is still a problem due to the possible
difference between the requested and the actual resolution
of fixed point types. Most readers of such code would
probably expect the step size to be equal to the requested
resolution and not to the somewhat more arbitrary actual
resolution of the fixed point type.

Jacob
--
Warning: Dates in calendars are closer than they appear.

ATOM RSS1 RSS2