Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1357 closed Feature Request (Rejected)

New concatenation operator for Static

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

Description

Special concatenation operator with new Static is missing.
This shows the problem:

For $i = 0 To 100
	ConsoleWrite(StringLen(_String()) & @CRLF)
Next



Func _String()

	Local Static $sString = "Variable That Would Exceed Script Line Limit If It's All Here"

	$sString &= "The Rest Of The Variable" ; <- This adds over and over

	Return $sString

EndFunc

Attachments (0)

Change History (3)

comment:1 Changed 10 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed
  • Version 3.3.2.0 deleted

I guess you didn't bother to read this very large message in the documentation?

Warning: This feature is experimental. It may not work, may contain bugs or may be changed or removed without notice. USE AT YOUR OWN RISK.

The feature is not complete, it contains bugs. Asking for new functionality for a feature that isn't even complete is just... annoying. Please wait until the feature is actually fully supported before trying to discuss it.

comment:2 Changed 10 years ago by Valik

Also, I just grasped what you wanted. Absolutely positively not. This is such a terrible idea to work around a problem that's completely unrelated. Just, no.

comment:3 Changed 10 years ago by trancexx

I just pointed to a possible problem that could come up when, and if, Static would be non-experimental. This appeared to be the best place to do that.
You didn't see that? Don't bother answering. I did.

Sorry for possible inconvenience. Wasn't intended.


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.