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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2acb7591d4833271,start X-Google-Attributes: gid103376,public From: Paul Van Bellinghen Subject: loop step function Date: 1997/01/24 Message-ID: <32E93C0B.36A@cloud9.net>#1/1 X-Deja-AN: 211989206 content-type: text/plain; charset=us-ascii organization: Cloud 9 Internet, White Plains, NY, USA mime-version: 1.0 reply-to: pvanbell@cloud9.net newsgroups: comp.lang.ada x-mailer: Mozilla 3.01Gold (Win95; I) Date: 1997-01-24T00:00:00+00:00 List-Id: I'm fairly new to ADA. I have coded in PASCAL, FORTRAN, C, and assembly and have found ADA to be similar to PASCAL but with stronger type checking and with better organization and data hiding. 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?