Modify

Opened 4 years ago

Closed 2 years 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 by TicketCleanup, 4 years ago

Version: 3.3.14.5

Automatic ticket cleanup.

comment:2 by Melba23, 4 years ago

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 by J-Paul Mesnage, 2 years ago

Resolution: Rejected
Status: newclosed

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

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.