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.

IntRef

Holds an integer value

Operations

Add #

Adds to value

method : public : Add(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntvalue to add to

Clone #

Clones the object instance

method : public : Clone() ~ System.IntRef

Return

TypeDescription
IntRefcloned the object instance

Compare # native

Compares two objects

method : public : native : Compare(rhs:System.Compare) ~ Int

Parameters

NameTypeDescription
rhsComparecompare object

Return

TypeDescription
Int0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater

Dec #

Decrements value by 1

method : public : Dec() ~ Nil

Div #

Divide by value

method : public : Div(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntvalue to divide by

FromArray # function

Creates an array of references from primitives

function : FromArray(input:Int[]) ~ IntRef[]

Parameters

NameTypeDescription
inputIntarray of primitives

Return

TypeDescription
IntRefan array of references

Get #

Get integer value

method : public : Get() ~ Int

Return

TypeDescription
Intinteger value

HashID #

Returns a unique hash ID for a integer

method : public : HashID() ~ Int

Return

TypeDescription
Inthash ID

Inc #

Increments value by 1

method : public : Inc() ~ Nil

Mul #

Multiply to value

method : public : Mul(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntvalue to multiply by

New # constructor

Default constructor

New()

New # constructor

Copy constructor

New(value:Int)

Parameters

NameTypeDescription
valueIntinteger value

Set #

Set integer value

method : public : Set(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntinteger value

Sub #

Subtract from value

method : public : Sub(value:Int) ~ Nil

Parameters

NameTypeDescription
valueIntvalue to subtract by

ToArray # function

Creates an array of primitives from references

function : ToArray(input:IntRef[]) ~ Int[]

Parameters

NameTypeDescription
inputIntRefarray of references

Return

TypeDescription
Intan array of primitives