05-19-2024, 07:33 PM
We've discussed this type of thing before, but the main issue is someone having the time and dedication to sit down and work it into the language for us.
FOR i AS INTEGER = 1 TO 10 STEP 2
PRINT i
NEXT
In the above, i would only be an integer for that short FOR...NEXT routine, and the best usage for this type of coding would be for temp variables with use with OPTION _EXPLICIT so one doesn't have to stop and declare that variable to prevent error/warning messages.
FOR i AS INTEGER = 1 TO 10 STEP 2
PRINT i
NEXT
In the above, i would only be an integer for that short FOR...NEXT routine, and the best usage for this type of coding would be for temp variables with use with OPTION _EXPLICIT so one doesn't have to stop and declare that variable to prevent error/warning messages.