comp.lang.ada
 help / color / mirror / Atom feed
From: Philippe Torres <ptorres@laas.fr>
Subject: Why the scalar types are not all discrete types ?
Date: 2000/10/13
Date: 2000-10-13T14:16:13+00:00	[thread overview]
Message-ID: <39E7192E.A0D424D3@laas.fr> (raw)

I don't understand very well...

For instance, the fixed-point types have the attributes First, Last but
Pos is not permitted (only for discrete types if i got it right). Why ?
Because Pos is an integer and the range of the fixed-point type can be
bigger than the range of type Integer ?

I ask that because i would like to iterate over a fixed-point index in a
'for ... loop' but the 'for ... loop' demands a 'range' over a discrete
type.

Quite weird for me since 'range' can be used in a fixed-point type
declaration :
---
type fixed_2_digits is delta 0.1 range -20.0 .. 20.0 ;
---
As usual, i must miss something somewhere...

Philippe




             reply	other threads:[~2000-10-13  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-13  0:00 Philippe Torres [this message]
2000-10-13  0:00 ` Why the scalar types are not all discrete types ? Philippe Torres
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox