MSIR.0836 Named parameters should not begin with %: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
(Automatically generated page update)
Line 3: Line 3:
  If the intent was for the name after the percent sign to be a parameter name, simply remove the percent sign. If the intent of the equal sign (=) was to pass the boolean result of an equality comparison to a method, use the comparison operator word <tt>Eq</tt> instead of the equal sign, or put the comparison inside parentheses.
  If the intent was for the name after the percent sign to be a parameter name, simply remove the percent sign. If the intent of the equal sign (=) was to pass the boolean result of an equality comparison to a method, use the comparison operator word <tt>Eq</tt> instead of the equal sign, or put the comparison inside parentheses.


[[Category:Sirius Mods Messages]]
[[Category:Sirius Mods messages]]

Revision as of 18:00, 19 April 2013

A named parameter was specified on a method invocation and the name began with a percent sign (%). Even though method declarations specify parameter names starting with a percent sign, the percent sign should not be specified on the method invocation.

If the intent was for the name after the percent sign to be a parameter name, simply remove the percent sign. If the intent of the equal sign (=) was to pass the boolean result of an equality comparison to a method, use the comparison operator word Eq instead of the equal sign, or put the comparison inside parentheses.