Built-In Types
From The Oxygene Language Wiki
This is a Language topic
Feel free to add your notes to this topic below.
The standard type aliases in Oxygene are defined in the virtual RemObjects.Oxygene.System (.NET) or com.remobjects.oxygene.system (Java) namespace, which is in the scope by default, along with Compiler Magic Functions.
| | | |
|---|---|---|
| Byte | System.Byte | com.remobjects.oxygene.system.SByte |
| Boolean | System.Boolean | com.remobjects.oxygene.system.Boolean |
| Char | System.Char | com.remobjects.oxygene.system.Char |
| String | System.String | java.lang.String |
| WideChar | System.Char | com.remobjects.oxygene.Char |
| WideString | System.String | java.lang.String |
| ShortInt | System.SByte | com.remobjects.oxygene.system.SByte |
| Word | System.UInt16 | |
| SmallInt | System.Int16 | com.remobjects.oxygene.system.Int16 |
| Integer | System.Int32 | com.remobjects.oxygene.system.Int32 |
| Cardinal | System.UInt32 | |
| LongWord | System.UInt32 | |
| Int64 | System.Int64 | com.remobjects.oxygene.system.Int64 |
| UInt64 | System.UInt64 | |
| Single | System.Single | com.remobjects.oxygene.system.Single |
| Double | System.Double | com.remobjects.oxygene.system.Double |
| NativeInt | System.IntPtr | |
| NativeUInt | System.UIntPtr | |
| Extended | System.Double | com.remobjects.oxygene.system.Double |
| Real | System.Double | com.remobjects.oxygene.system.Double |
| Pointer | ^System.Void |
Notes for Java
- Java has no support unsigned value types
- all value types are in the virtual com.remobjects.oxygene.system namespace
- the types in the java.lang namespace are reference (i.e. class) types; they are used for the nullable versions of the regular value types:
- e.g.: nullable com.remobjects.oxygene.system.Boolean is java.lang.Boolean.
- The java.lang namespace is in scope by default, but com.remobjects.oxygene.system has higher precedence, so the Pascal types are accessible by default.
See Also
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To