2.1 Basic Types
Basic types are Bool
, Float
and Int
. They can easily be identified in the syntax by values such as
true
andfalse
forBool
,1
,0
,-1
and0xFF0000
forInt
and1.0
,0.0
,-1.0
,1e10
forFloat
.
Basic types are not classes in Haxe. They are implemented as abstract types and are tied to the compiler's internal operator-handling as described in the following sections.