BTW, Good job
![Wink ;)](./images/smilies/icon_e_wink.gif)
I have used dynamic variable creation for repeated string concatenations, which performs (or at least did at the time) much better than using array/map. Ofc, that wouldn't be a reason to enable dynamic variables rather than optimising arr[x] .= ....Although I'm not sure I've ever seen a case where dynamically creating variables was the best solution to a problem
Code: Select all
MsgBox ["deref_me"]*
; EOF marker works.
Code: Select all
MsgBox ["deref_me"]*
if (1 + 1 == 2) ; fails as * begins a continuation section.
MsgBox
This would not be an improvement, nor would it be backward-compatible.iseahound wrote:I wonder if function statements can be special cased to handle the postfix ? and * better.
There would be more ambiguity, not less, if I implemented your suggestion.iseahound wrote:It just feels to me that parsing has gotten very ambiguous with prefix / infix / postfix operators and continuation sections
Function call statements cannot be variadic; that is, the parameter list must be enclosed in parentheses (or brackets for a property).
The question mark must be followed by one of the following symbols (ignoring whitespace): )]},:.
I have no idea what you mean.iseahound wrote:perhaps something a little stronger is needed to keep things clear.
Return to “AutoHotkey Development”
Users browsing this forum: Ragnar and 42 guests