Modify

Opened 3 years ago

Closed 8 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

Automatic ticket cleanup.

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 8 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.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.