Code: Select all
() => (
fn(1) ; missing end comma
fn(2)
)
working example
Code: Select all
() => (
fn(1) ; missing end comma
fn(2)
)
Code: Select all
alert((() => 'hello world!')())
Code: Select all
alert((() => 'hello world!')())
Code: Select all
MsgBox((() => 'hello world')())
Code: Select all
MsgBox (() => 'hello world')()
I made an assumption that the first open parenthesis was for the MsgBox but apparently due to the space it is not.
I believe this has always been the case, also in v1.Function call wrote:There must be no space between the function name or expression and the open parenthesis which begins the parameter list
Return to “AutoHotkey Development”
Users browsing this forum: No registered users and 19 guests