Skip to content

Incorrect quoting of parameters #6

Open
@Lexikos

Description

@Lexikos
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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions