Modify ↓
Opened 3 years ago
Closed 7 months ago
#3859 closed Feature Request (Rejected)
Extend For…Next syntax to force loop variable to be local within the loop only
Reported by: | Alecsis1 | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | Severity: | None | |
Keywords: | Cc: |
Description
Something like this:
Opt('MustDeclareVars', 1) For Local $i = 1 To 3 ConsoleWrite($i) ; prints "123" Next ConsoleWrite($i) ; now prints "4", but with "Local" modifier should be treated as "undeclared variable"
Imho, such syntax extension may be useful.
Attachments (0)
Change History (3)
comment:1 Changed 3 years ago by TicketCleanup
- Version 3.3.14.5 deleted
comment:2 Changed 3 years ago by Melba23
Can you please give an example where such a functionality would be useful or where the current implementation causes a serious problem.
M23
comment:3 Changed 7 months ago by Jpm
- Resolution set to Rejected
- Status changed from new to closed
As no example was given,
I assume it is not so important so I close it
If you find a good example just reopen a new ticket
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
Automatic ticket cleanup.