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 X-Google-Attributes: gid103376,public From: Philippe Torres Subject: Re: Why the scalar types are not all discrete types ? Date: 2000/10/13 Message-ID: <39E71AB2.A2711BDA@laas.fr>#1/1 X-Deja-AN: 681012167 Content-Transfer-Encoding: 7bit References: <39E7192E.A0D424D3@laas.fr> X-Accept-Language: fr-FR,en Content-Type: text/plain; charset=us-ascii X-Complaints-To: postmaster@cict.fr X-Trace: news.cict.fr 971446961 8597 140.93.144.128 (13 Oct 2000 14:22:41 GMT) Organization: Inconnue Mime-Version: 1.0 NNTP-Posting-Date: 13 Oct 2000 14:22:41 GMT Newsgroups: comp.lang.ada Date: 2000-10-13T14:22:41+00:00 List-Id: Philippe Torres wrote: > > 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. > Don't bother, i've done it with --- V : fixed_2_digits := start_of_range ; end_of_loop_value : fixed_2_digits := end_of_range ; loop some_action_on(V) ; exit when V = end_of_loop_value ; V := V'Succ ; end loop ; --- Even if thinking about it once should have been enough, I'll think twice next time. Promised. Philippe