UInt8
In the prelude: every iyi program has it, with no import.
UInt8struct
struct UInt8 < Int
def !=(other : Int32) : Bool
def !=(other : Int64) : Bool
def !=(other : UInt8) : Bool
def !=(other : UInt64) : Bool
def !=(other : Float64) : Bool
def !=(other : UInt16) : Bool
def &(other : Int32) : self
def &(other : Int64) : self
def &(other : UInt8) : self
def &(other : UInt64) : self
def &*(other : Int32) : self
def &*(other : Int64) : self
def &*(other : UInt8) : self
def &*(other : UInt64) : self
def &+(other : Int32) : self
def &+(other : Int64) : self
def &+(other : UInt8) : self
def &+(other : UInt64) : self
def &-(other : Int32) : self
def &-(other : Int64) : self
def &-(other : UInt8) : self
def &-(other : UInt64) : self
def *(other : Int32) : self
def *(other : Int64) : self
def *(other : UInt8) : self
def *(other : UInt64) : self
def *(other : Float64) : Float64
def +(other : Int32) : self
def +(other : Int64) : self
def +(other : UInt8) : self
def +(other : UInt64) : self
def +(other : Float64) : Float64
def -(other : Int32) : self
def -(other : Int64) : self
def -(other : UInt8) : self
def -(other : UInt64) : self
def -(other : Float64) : Float64
def <(other : Int32) : Bool
def <(other : Int64) : Bool
def <(other : UInt8) : Bool
def <(other : UInt64) : Bool
def <(other : Float64) : Bool
def <(other : UInt16) : Bool
def <=(other : Int32) : Bool
def <=(other : Int64) : Bool
def <=(other : UInt8) : Bool
def <=(other : UInt64) : Bool
def <=(other : Float64) : Bool
def <=(other : UInt16) : Bool
def ==(other : Int32) : Bool
def ==(other : Int64) : Bool
def ==(other : UInt8) : Bool
def ==(other : UInt64) : Bool
def ==(other : Float64) : Bool
def ==(other : UInt16) : Bool
def >(other : Int32) : Bool
def >(other : Int64) : Bool
def >(other : UInt8) : Bool
def >(other : UInt64) : Bool
def >(other : Float64) : Bool
def >(other : UInt16) : Bool
def >=(other : Int32) : Bool
def >=(other : Int64) : Bool
def >=(other : UInt8) : Bool
def >=(other : UInt64) : Bool
def >=(other : Float64) : Bool
def >=(other : UInt16) : Bool
def ^(other : Int32) : self
def ^(other : Int64) : self
def ^(other : UInt8) : self
def ^(other : UInt64) : self
def hash : Int32
def to_f : Float64
def to_f64 : Float64
# The checked form raises on overflow — which in this prelude is a panic,
# since `__crystal_raise_overflow` prints and exits (SPEC.md III.1.4).
#
# The unchecked form is the conversion without the check, and a float
# past the range saturates (NaN is 0), alike in every build. It is
# spelled the way `unsafe_chr` below is: `unsafe_to_u8`. Crystal spells
# it `to_u8!`, which is not a name in iyi (SPEC.md III.1.7) — those
# declarations were accepted only because a macro expansion was
# reparsed by the other language's rules, and no iyi source could call
# one: `x.to_u8!` is `x.to_u8` with its error propagated. The callers
# wanted the instruction: `memset`'s `value.to_u8!` is C's "converted to
# unsigned char", and the checked form panics on 0x1ff where C writes 0xff.
def to_i : Int32
def to_i32 : Int32
def to_i64 : Int64
def to_s(base : Int32) : String
def to_s : String
def to_u64 : UInt64
def to_u8 : UInt8
def unsafe_chr : Char
def unsafe_div(other : Int32) : self
def unsafe_div(other : Int64) : self
def unsafe_div(other : UInt8) : self
def unsafe_div(other : UInt64) : self
def unsafe_mod(other : Int32) : self
def unsafe_mod(other : Int64) : self
def unsafe_mod(other : UInt8) : self
def unsafe_mod(other : UInt64) : self
def unsafe_shl(other : Int32) : self
def unsafe_shl(other : Int64) : self
def unsafe_shl(other : UInt8) : self
def unsafe_shl(other : UInt64) : self
def unsafe_shr(other : Int32) : self
def unsafe_shr(other : Int64) : self
def unsafe_shr(other : UInt8) : self
def unsafe_shr(other : UInt64) : self
def unsafe_to_f : Float64
def unsafe_to_f64 : Float64
def unsafe_to_i : Int32
def unsafe_to_i32 : Int32
def unsafe_to_i64 : Int64
def unsafe_to_u64 : UInt64
def unsafe_to_u8 : UInt8
def |(other : Int32) : self
def |(other : Int64) : self
def |(other : UInt8) : self
def |(other : UInt64) : self
def self.zero : self
end
The unsigned pair, which the prelude did not declare:
UInt64's division and modulo, and text for both. They arrived insideformat.iyibecausesprintfneeded them, so a program dividing twoUInt64s had to have loaded a formatter to do it - whichstd/timefound the moment the formatter stopped being everybody's.