I was wondering why the interpreter complains about multiple statements inside an arrow function:
Code: Select all
SetTimer(() => {
color := PixelGetColor(270, 360)
ShowMessageBox('Uploading "' filename '"...')
}, 1000)
Code: Select all
SetTimer(() => {
color := PixelGetColor(270, 360)
ShowMessageBox('Uploading "' filename '"...')
}, 1000)
That's fantastic!lexikos wrote: ↑28 Mar 2024, 19:51However, v2.1-alpha.3+ permits function definition expressions, where you just write a proper function definition inline (without =>, and optionally omitting the name).
Users browsing this forum: hiahkforum, lexikos, w_i_k_i_d, wineguy and 45 guests