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

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
mNo edit summary
Line 1: Line 1:
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.<p class="code"> In the following property declaration, the datatype for the property is indicated by the <tt>To</tt> clause at the end as <tt>Float</tt>:<p class="code"> property temperatureCelsius is float</pre> The keyword <tt>is</tt> is not required in indicating the property of function datatype. Add the function or property datatype to the declaration.
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 <var>Is</var> clause at the end as <var>Float</var>:
<p class="code"> property temperatureCelsius is float</p>  
 
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]]

Revision as of 18:06, 23 April 2014

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.