W Wrapl, The Programming Language

Libraries Std.Object

Types

T

the base type of all types

Constants

Equal : T

Result of comparison.

Greater : T

Result of comparison.

Less : T

Result of comparison.

Nil : T

Functions

Compare(a @ T, b @ T) : T

Compares a and b and return either Std.Object.Less, Std.Object.Equal or Std.Object.Greater.

Create(type @ Std.Type.T, values...) : T

Creates a new object of type type. If present, fields are initialized from values.

Field()

Hash(a @ T) : Std.Integer.SmallT

Returns a hash for a.

IsEqual(a @ T, b @ T) : T

Returns b if a == b

IsNotEq(a @ T, b @ T) : T

Returns b if a ~== b

New(object @ T) : T

creates a new object of the same type as object

RegisterFinalizer(object @ T, finalizer @ Std.Function.T, data @ ANY = NIL)

Attaches a finalizer to object. I.e. finalizer(object, data) should be called at some stage after object becomes unreachable.

Methods

:">"(_, _)

:">="(_, _)

:"<"(_, _)

:"<="(_, _)

:"="(_, _)

:"="(_, _, _ @ Agg.ObjectTable.T)

:"@"(_ = Nil, _ = Std.String.T)

:init(_)

:max(_, _)

:min(_, _)

:"~="(_, _)