MSIR.0775 (what) required for (methtype): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
(Automatically generated page update)
Line 6: Line 6:
The keyword <var>is</var> is not required in indicating the property or function datatype. You add the function or property datatype to the declaration.
The keyword <var>is</var> is not required in indicating the property or function datatype. You add the function or property datatype to the declaration.


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

Revision as of 16:05, 13 August 2015

A function or property method declaration in a class was not followed by a datatype. Since a function returns something of a specific datatype, and a property can be set to or returns something of a specific datatype, that datatype must be indicated in the function or property declaration.

In the following property declaration, the datatype for the property is indicated by the Is clause at the end as Float:

property temperatureCelsius is float

The keyword is is not required in indicating the property or function datatype. You add the function or property datatype to the declaration.