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.
ArraySort
Sorts primitive arrays in place
'Int->Sort(v)' and its Byte, Char and Float counterparts return a sorted copy; these sort the array they are handed. Both share this implementation.
Example
a := [5, 3, 1, 4];
ArraySort->Sort(a);
a[0]->PrintLine(); # 1Operations
Sort # native
Sorts a Byte array in place
function : native : Sort(array:Byte[]) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| array | Byte | array to sort |
Sort # native
Sorts part of a Byte array in place
function : native : Sort(array:Byte[], low:Int, high:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| array | Byte | array to sort |
| low | Int | first index to sort |
| high | Int | last index to sort |
Sort # native
Sorts a Char array in place
function : native : Sort(array:Char[]) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| array | Char | array to sort |
Sort # native
Sorts part of a Char array in place
function : native : Sort(array:Char[], low:Int, high:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| array | Char | array to sort |
| low | Int | first index to sort |
| high | Int | last index to sort |
Sort # native
Sorts a Int array in place
function : native : Sort(array:Int[]) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| array | Int | array to sort |
Sort # native
Sorts part of a Int array in place
function : native : Sort(array:Int[], low:Int, high:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| array | Int | array to sort |
| low | Int | first index to sort |
| high | Int | last index to sort |