From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aef001348b827f93,start X-Google-Attributes: gid103376,public From: Philippe Torres Subject: Why the scalar types are not all discrete types ? Date: 2000/10/13 Message-ID: <39E7192E.A0D424D3@laas.fr>#1/1 X-Deja-AN: 681009984 Content-Transfer-Encoding: 7bit X-Accept-Language: fr-FR,en Content-Type: text/plain; charset=us-ascii X-Complaints-To: postmaster@cict.fr X-Trace: news.cict.fr 971446573 8537 140.93.144.128 (13 Oct 2000 14:16:13 GMT) Organization: Inconnue Mime-Version: 1.0 NNTP-Posting-Date: 13 Oct 2000 14:16:13 GMT Newsgroups: comp.lang.ada Date: 2000-10-13T14:16:13+00:00 List-Id: 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