Skip to content

Value

Value is the abstract supertype of all values.

Value is not constructible directly. Every value has its members, and a class declares one only to replace it.

Methods

(dbg)() -> Str

Returns the debug representation.

(eq) other -> Bool

Compares with another value of any type.

Parameters

NameTypeDescription
other Value

(hash)() -> Int

Returns the hash code, which is equal for equal values.

(ne) other -> Bool

Compares with another value for inequality.

Parameters

NameTypeDescription
other Value

(req) other -> Bool

Compares with another value when this value is the right operand.

Parameters

NameTypeDescription
other Value

(rne) other -> Bool

Compares for inequality when this value is the right operand.

Parameters

NameTypeDescription
other Value

(str)() -> Str

Returns the string conversion that interpolation uses.

(verbatim)() -> Str

Returns the representation as written in source.