Module wright::internals [] [src]

Internal representations for values in Wright.

Structs

Boolean

Internal representation for booleans.

Char

Internal representation for chars in wright.

Fraction

Internal representation for fractions, which wright uses over floating point numbers because of floating point imprecision.

Integer

Internal representation for integers.

List

Internal representation for lists in Wright.

Str

Internal representation for strings.

UserDefinedClass

Struct for user defined classes.

Enums

Primitive

Enum for wright primitives.

Type

Enum for types.

Traits

WrightNumber

Trait applied to all numerical primitives of wright. All of these functions can be accessed by a compiler annotation in Wright ("? ..."). i.e. for integer multiplication in wright, "let c: integer = a*b;" will expand to "let c: integer = integer.add(a,b);" and add is defined somewhere in wright's standard library as " ... pub func add(left: integer, right: integer) -> integer { return ?add(left, right); } ... "