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,2acb7591d4833271 X-Google-Attributes: gid103376,public From: geert@fozzie.sun3.iaf.nl (Geert Bosch) Subject: Re: loop step function Date: 1997/01/25 Message-ID: <5ccs29$h2i@fozzie.sun3.iaf.nl>#1/1 X-Deja-AN: 212219528 references: <32E93C0B.36A@cloud9.net> organization: La Calandre Infortunee newsgroups: comp.lang.ada Date: 1997-01-25T00:00:00+00:00 List-Id: Paul Van Bellinghen (pvanbell@cloud9.net) wrote: "Anyway, there seems to be an obvious omission in the ADA language. The FOR loop does not have a "STEP" option. In order to perform a loop function using a variable's range of values but in steps greater than the variable kernel, you seem to have to use a WHILE loop with the variable incremented within the loop by the step size. Is there a more elegant way of doing this?" It is not possible to answer questions like "I used feature X in language Y, where is X in Ada?" in general. It is very helpful if you post a small example problem where you don't know how to solve it using Ada. Line-by-line translations to Ada of your Pascal programs typically won't give very good results, since it is often necessary to look at the problem from a slightly different perspective. This is the hardest part in learning the language. When you post an example, there is more context to provide you with an elegant Ada solution. Regards, Geert -- E-Mail: geert@sun3.iaf.nl ``I think there is a world market for maybe five computers.'' Thomas Watson, chairman of IBM, 1943