MSIR.0790 Non-readOnly property cannot be called THIS: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
(Automatically generated page update)
Line 3: Line 3:
Use another name for the property.
Use another name for the property.


[[Category:Sirius Mods messages]]
[[Category:Sirius Mods messages]] [[Category:MSIR.0600 - MSIR.0799]]

Revision as of 16:05, 13 August 2015

A non-readOnly property has a Set method. In the Set method, the name of the input value is the same as the name of the property. If a non-readOnly property is called this, it means that the input value to the Set method would be referred to with the variable %this. But %this is always defined to reference the method object. This means that a non-readOnly property would produce an ambiguity in the meaning of %this inside the Set method, so it is not allowed.

Use another name for the property.