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
| Name | Type | Description |
|---|---|---|
other |
Value |
(hash)() -> Int
Returns the hash code, which is equal for equal values.
(ne) other -> Bool
Compares with another value for inequality.
Parameters
| Name | Type | Description |
|---|---|---|
other |
Value |
(req) other -> Bool
Compares with another value when this value is the right operand.
Parameters
| Name | Type | Description |
|---|---|---|
other |
Value |
(rne) other -> Bool
Compares for inequality when this value is the right operand.
Parameters
| Name | Type | Description |
|---|---|---|
other |
Value |
(str)() -> Str
Returns the string conversion that interpolation uses.
(verbatim)() -> Str
Returns the representation as written in source.