Allow comparing equality between builtin types and null

This commit is contained in:
George Marques
2021-09-17 12:22:48 -03:00
parent b334560f05
commit 455e142d37
42 changed files with 1165 additions and 7 deletions

View File

@@ -66,6 +66,11 @@
Cast a float value to an integer value, this method simply removes the number fractions (i.e. rounds [code]from[/code] towards zero), so for example [code]int(2.7)[/code] will be equals to 2, [code]int(0.1)[/code] will be equals to 0 and [code]int(-2.7)[/code] will be equals to -2. This operation is also called truncation.
</description>
</method>
<method name="operator !=" qualifiers="operator">
<return type="bool" />
<description>
</description>
</method>
<method name="operator !=" qualifiers="operator">
<return type="bool" />
<argument index="0" name="right" type="float" />
@@ -172,13 +177,6 @@
[/codeblock]
</description>
</method>
<method name="operator +" qualifiers="operator">
<return type="float" />
<argument index="0" name="right" type="float" />
<description>
Adds an [int] to a [float]. The result is a [float].
</description>
</method>
<method name="operator +" qualifiers="operator">
<return type="int" />
<argument index="0" name="right" type="int" />
@@ -186,6 +184,13 @@
Adds two integers.
</description>
</method>
<method name="operator +" qualifiers="operator">
<return type="float" />
<argument index="0" name="right" type="float" />
<description>
Adds an [int] to a [float]. The result is a [float].
</description>
</method>
<method name="operator -" qualifiers="operator">
<return type="float" />
<argument index="0" name="right" type="float" />
@@ -260,6 +265,11 @@
Returns [code]true[/code] the left integer is less than or equal to the right one.
</description>
</method>
<method name="operator ==" qualifiers="operator">
<return type="bool" />
<description>
</description>
</method>
<method name="operator ==" qualifiers="operator">
<return type="bool" />
<argument index="0" name="right" type="float" />