Opened 9 years ago

Closed 9 years ago

#2894 closed Feature Request (Rejected)

Assign - new flag - static

Reported by: mLipok Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


Please add new flag 'Static'
I'am thinking about posibility to dynamicaly creating Static Local variable based on paramters passed to my function.

Attachments (0)

Change History (6)

comment:1 Changed 9 years ago by jchd18

Isn't IsDeclared enough for handling this situation?

comment:2 Changed 9 years ago by mLipok

I make an example , but now I'am busy at work.

comment:3 Changed 9 years ago by anonymous

Isn't it better to create a static map of these variables? You cannot list the names of static variables.

comment:4 Changed 9 years ago by BrewManNH

How exactly would a dynamically created static variable be used in subsequent runs of the function? How would you be able to use them more than once without passing the variable names to the function over and over again? Wouldn't a Static Local Array work better, or as previously mentioned, a static map or scripting dictionary?

comment:5 Changed 9 years ago by mLipok

I thought about it, I did few test, I try to make example, and finally realized that all that the concept is NOT so good.

please close.
and sorry for: if I bother your head in this case.


comment:6 Changed 9 years ago by BrewManNH

  • Resolution set to Rejected
  • Status changed from new to closed

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

as closed The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.