v2026.5.3
All Bundles
Bundle Core runtime library providing primitive types (Bool, Byte, Char, Int, Float, String), base collections, and system utilities. Every Objeck program links against this bundle automatically via lang.obl.

Base

Base class for all objects

Operations

GetClass #

Returns the class associated with this instance

method : public : GetClass() ~ Introspection.Class

Return

TypeDescription
Introspection.Classassociated with this instance

GetClassID #

Returns the unique class ID

method : public : GetClassID() ~ Int

Return

TypeDescription
Intunique class ID

GetInstanceID #

Returns the unique instance ID

method : public : GetInstanceID() ~ Int

Return

TypeDescription
Intunique instance ID

New # constructor

Default constructor

New()

Otherwise #

Compiler intrinsic: returns the receiver if non-Nil, otherwise returns the default value.

method : public : Otherwise(default:Base) ~ Base

Parameters

NameTypeDescription
defaultBasedefault value to return if receiver is Nil

Return

TypeDescription
Basereceiver if non-Nil, otherwise default

Try #

Compiler intrinsic: wraps subsequent chain calls in error recovery. Returns Nil if the following method call raises an error.

method : public : Try() ~ Base

Return

TypeDescription
Baseresult of the following method call, or Nil on error