TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

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

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

Print Reply
Jacob Sparre Andersen <[log in to unmask]>
Thu, 23 Aug 2001 12:57:46 +0200
TEXT/PLAIN (22 lines)

> 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.

Warning: Dates in calendars are closer than they appear.