Open
Description
Loop Read, % filename ; old
Loop "Read", filename ; new (incorrect)
Loop Read, filename ; correct
FileRead html, % filename ; old
FileRead "html", filename ; new (incorrect)
html := FileRead(filename) ; correct
Sleep, m_Interval ; old
Sleep "m_Interval" ; new (incorrect)
Sleep m_Interval ; correct
For identifying which command parameters accept expressions by default, you may refer to g_act. For example:
, {_T("ControlMove"), 0, 9, 9, {2, 3, 4, 5, 0}}
This indicates the 2nd, 3rd, 4th and 5th parameter are expressions, with 0 just terminating the list.
For identifying which parameters are output variables, you may refer to ArgIsVar. The "heuristic" for translating output vars is described in v2-changes:
If the command's first parameter is an output variable and the second parameter is not, it becomes the return value and is removed from the parameter list.
The remaining output variables are handled like ByRef parameters (for which usage and syntax has changed), except that they permit references to writable built-in variables.
Metadata
Metadata
Assignees
Labels
No labels