v2026.11.3
All Bundles
Bundle

Core runtime library providing primitive types (Bool, Byte, Char, Int, Float, String), the Ref wrappers and array helpers, and system utilities (console, files, threads, sockets). Collections are not here: they are in gen_collect.obl. 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

ToString #

Returns a string for the instance. A Stringify instance prints its own ToString; any other prints its class name and hex instance ID, joined by an at sign. A concrete method is bound statically, so a ToString a class declares without implementing Stringify is not reached through a Base reference: implement Stringify for that.

method : public : ToString() ~ String

Return

TypeDescription
Stringstring for the instance

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