Difference between revisions of "Type system"

From OXPL Wiki
Jump to navigation Jump to search
(Links)
Line 4: Line 4:
 
The primitive types are the most basic ones.
 
The primitive types are the most basic ones.
  
* integer: <tt>integer</tt>
+
* integer: [[Type:integer|<tt>integer</tt>]]
** signed: <tt>int</tt>
+
** signed: [[Type:int|<tt>int</tt>]]
*** <tt>int8</tt>
+
*** [[Type:int8|<tt>int8</tt>]]
*** <tt>int16</tt>
+
*** [[Type:int16|<tt>int16</tt>]]
*** <tt>int32</tt>
+
*** [[Type:int32|<tt>int32</tt>]]
*** <tt>int64</tt>
+
*** [[Type:int64|<tt>int64</tt>]]
*** <tt>int128</tt>
+
*** [[Type:int128|<tt>int128</tt>]]
 
** unsigned: <tt>uint</tt>
 
** unsigned: <tt>uint</tt>
*** [[uint8|<tt>uint8</tt>]]
+
*** [[Type:uint8|<tt>uint8</tt>]]
*** <tt>uint16</tt>
+
*** [[Type:uint16|<tt>uint16</tt>]]
*** <tt>uint32</tt>
+
*** [[Type:uint32|<tt>uint32</tt>]]
*** <tt>uint64</tt>
+
*** [[Type:uint64|<tt>uint64</tt>]]
*** <tt>uint128</tt>
+
*** [[Type:uint128|<tt>uint128</tt>]]
* float: <tt>float</tt>
+
* float: [[Type:float|<tt>float</tt>]]
** <tt>float32</tt>
+
** [[Type:float32|<tt>float32</tt>]]
** <tt>float64</tt>
+
** [[Type:float64|<tt>float64</tt>]]
* character: <tt>char</tt>
+
* character: [[Type:char|<tt>char</tt>]]
* boolean: <tt>bool</tt>
+
* boolean: [[Type:bool|<tt>bool</tt>]]
  
 
== Composite types ==
 
== Composite types ==
* array: <tt>arr</tt>
+
* array: [[Type:arr|<tt>arr</tt>]]
* string: <tt>str</tt>
+
* string: [[Type:str|<tt>str</tt>]]

Revision as of 20:59, 21 January 2021

The type system of OXPL will be static and strong.

Primitive types

The primitive types are the most basic ones.

Composite types