Improved type system

This commit is contained in:
2025-02-17 14:31:47 +01:00
parent 3550f9e24e
commit b8e37fafae
62 changed files with 189 additions and 172 deletions

View File

@ -1,20 +1,24 @@
package types
var (
Any = &Base{name: "Any", size: 0}
Any = &Base{name: "any", size: 0}
AnyArray = &Array{Of: Any}
AnyPointer = &Pointer{To: Any}
Int64 = &Base{name: "Int64", size: 8}
Int32 = &Base{name: "Int32", size: 4}
Int16 = &Base{name: "Int16", size: 2}
Int8 = &Base{name: "Int8", size: 1}
Float64 = &Base{name: "Float64", size: 8}
Float32 = &Base{name: "Float32", size: 4}
Int64 = &Base{name: "int64", size: 8}
Int32 = &Base{name: "int32", size: 4}
Int16 = &Base{name: "int16", size: 2}
Int8 = &Base{name: "int8", size: 1}
Float64 = &Base{name: "float64", size: 8}
Float32 = &Base{name: "float32", size: 4}
)
var (
Bool = Int
Int = Int64
Float = Float64
UInt = Int
Bool = Int
Int = Int64
Float = Float64
UInt = Int
UInt64 = Int64
UInt32 = Int32
UInt16 = Int16
UInt8 = Int8
)