CompileErrors/A0029: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Danielr (talk | contribs)
Created page with "{{CompileError |errortext = A0029 - Unexpected end parenthesis; argument group is incomplete. |description = A0029 is issued when an argument group contains more than one argu..."
 
Danielr (talk | contribs)
m moved CompileErrors/A0028 to CompileErrors/A0029: Wrong number.
 
(No difference)

Latest revision as of 22:43, 25 March 2015

A0029 - Unexpected end parenthesis; argument group is incomplete.

Description

A0029 is issued when an argument group contains more than one argument, but not enough to satisfy the parent command.

In strict parenthesis mode, every command must be followed by a group containing exactly the correct number of required arguments.

In permissive parenthesis mode, a group may contain either ONE command and its arguments, or ALL the arguments to the parent command.

If there are too many arguments instead of not enough, A0001 will be issued instead.

Example of Cause

MFormat requires three arguments.

MFORMAT(ADD#, 4) 6 { A0029 - Unexpected end parenthesis }

Resolution

Position the argument group parentheses correctly, or remove them (in permissive mode only).

MFORMAT(ADD#, 4, 6) { No error }

MFORMAT ADD#, 4, 6 { No error in permissive mode; A0024 in strict mode }